Class JPanelRenderOptionsShearWarp

All Implemented Interfaces:
ActionListener, FocusListener, ItemListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class JPanelRenderOptionsShearWarp extends JPanelRendererJ3D
Dialog to turn bounding box of surface renderer on and off, and to change the color of the frame.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • buttonPanel

      private JPanel buttonPanel
      Button Panel.
    • colorButton

      private JButton colorButton
      Color button for changing color.
    • colorButtonBackground

      private JButton colorButtonBackground
      Color button for changing z color.
    • colorChooser

      private ViewJColorChooser colorChooser
      Color chooser dialog.
    • myParent

      private VolumeRendererShearWarp myParent
      Volume rendering parent frame.
    • radioButtonGroupProjections

      private ButtonGroup radioButtonGroupProjections
      Button group for projections.
    • radioButtonOrthographic

      private JRadioButton radioButtonOrthographic
      Radio Button for Orthographic rendering.
    • radioButtonPerspective

      private JRadioButton radioButtonPerspective
      Radio Button for Perspective rendering.
    • scroller

      private JScrollPane scroller
      Scroll pane.
    • scrollPanel

      Scroll panel that holding the all the control components.
    • stepText

      private JTextField stepText
      Text field of the ray trace step size.
  • Constructor Details

    • JPanelRenderOptionsShearWarp

      public JPanelRenderOptionsShearWarp(VolumeRendererShearWarp parent)
      Creates new dialog for turning bounding box frame on and off.
      Parameters:
      parent - DOCUMENT ME!
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Changes color of box frame and button if color button was pressed; turns bounding box on and off if checkbox was pressed; and closes dialog if "Close" button was pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Specified by:
      actionPerformed in class JPanelRendererBase
      Parameters:
      event - Event that triggered function.
    • disposeLocal

      public void disposeLocal(boolean flag)
      Dispose global variables.
      Parameters:
      flag - dispose super or not.
    • getMainPanel

      public JPanel getMainPanel()
      Get the main control panel.
      Specified by:
      getMainPanel in class JPanelRendererBase
      Returns:
      JPanel main panel.
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Sets the flags for the checkboxes and resets labels.
      Specified by:
      itemStateChanged in interface ItemListener
      Overrides:
      itemStateChanged in class JPanelRendererBase
      Parameters:
      event - Event that triggered this function.
    • resizePanel

      public void resizePanel(int panelWidth, int frameHeight)
      Resizie the control panel with ViewJFrameVolumeView's frame width and height.
      Overrides:
      resizePanel in class JPanelRendererBase
      Parameters:
      panelWidth - int width
      frameHeight - int height
    • setRenderPerspective

      public void setRenderPerspective(boolean bEnable)
      Enable perspective projection rendering; otherwise use orthographic projection.
      Parameters:
      bEnable - true to enable perspective projection
    • setStepSize

      public void setStepSize()
      Enable perspective projection rendering; otherwise use orthographic projection.
    • setVisible

      public void setVisible(boolean status)
      Makes the dialog visible next to the parent frame. If this makes it go off the screen, puts the dialog in the center of the screen.
      Overrides:
      setVisible in class JPanelRendererBase
      Parameters:
      status - Flag indicating if the dialog should be visible.
    • finalize

      protected void finalize() throws Throwable
      finalize - calls dispose.
      Overrides:
      finalize in class JPanelRendererBase
      Throws:
      Throwable - DOCUMENT ME!
    • setBoxColor

      protected void setBoxColor(JButton button, Color color)
      Calls the appropriate method in the parent frame.
      Parameters:
      button - DOCUMENT ME!
      color - Color to set box frame to.
    • init

      private void init()
      Initializes GUI components.