Class JInterfaceBase

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
JDialogDTIInput, JPanel3DMouse_WM, JPanelAnnotationAnimation, JPanelAnnotations, JPanelClip_WM, JPanelCurves, JPanelCustomBlend, JPanelDisplay_WM, JPanelDTIParametersPanel, JPanelGeodesic_WM, JPanelLattice, JPanelLights_WM, JPanelMultiDimensionalTransfer, JPanelNavigation, JPanelPositions, JPanelRenderMode_WM, JPanelSculptor_WM, JPanelSlices_WM, JPanelSurface_WM, JPanelSurfaceTexture_WM, JPanelVolume4D, SurfacePaint_WM

public abstract class JInterfaceBase extends JDialog implements ActionListener
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • colorChooser

      protected ViewJColorChooser colorChooser
      Color chooser dialog.
    • mainPanel

      protected JPanel mainPanel
      The main control.
    • cancelButton

      protected JButton cancelButton
      Cancel button is used on most dialogs. Defining it in the base allows default actions if the user presses return and the button is in focus.
    • OKButton

      protected JButton OKButton
      OK button is used on most dialogs. Defining it in the base allows default actions if the user presses return and the button is in focus.
    • rayBasedRenderWM

      protected transient VolumeTriPlanarRender rayBasedRenderWM
      Raycast based renderer reference, raycast renderer or shear warp renderer.
    • m_kVolumeViewer

      protected transient VolumeTriPlanarInterface m_kVolumeViewer
      Render base.
  • Constructor Details

    • JInterfaceBase

      public JInterfaceBase()
      Default constructor.
    • JInterfaceBase

      public JInterfaceBase(VolumeTriPlanarInterface kVolumeViewer)
      Construct Base.
      Parameters:
      kVolumeViewer - parent frame.
  • Method Details

    • buildTitledBorder

      public static TitledBorder buildTitledBorder(String title)
      Builds a titled border with the given title, an etched border, and the proper font and color. Changed to public static member so that it can be used for other JPanels not inherited from this base class.
      Parameters:
      title - Title of the border
      Returns:
      The titled border.
    • getMainPanel

      public JPanel getMainPanel()
      Get the main control panel.
      Returns:
      mainPanel the whole control panel.
    • buildCancelButton

      protected JButton buildCancelButton()
      Builds the cancel button. Sets it internally as well return the just-built button.
      Returns:
      JButton cancel button
    • buildOKButton

      protected JButton buildOKButton()
      Builds the OK button. Sets it internally as well return the just-built button.
      Returns:
      JButton ok button
    • setButtonColor

      public void setButtonColor(JButton _button, Color _color)
      Set the color of the button. Derived classes may also perform other functions.
      Parameters:
      _button - button.
      _color - color.
    • updateColorButton

      public void updateColorButton(float[] afColor, float fColor)