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

public class JPanelSurfaceBox 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:
    • boundingCheck

      protected JCheckBox boundingCheck
      Check box for turning box on and off.
    • colorButton

      protected JButton colorButton
      Color button for changing color.
    • colorButtonBackground

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

      protected ViewJColorChooser colorChooser
      Color chooser dialog.
    • cubePanel

      protected JPanel cubePanel
      Panel for the rotation cube.
    • cubicCheck

      protected JCheckBox cubicCheck
      Check box for cubic control.
    • radioButtonGroupProjections

      protected ButtonGroup radioButtonGroupProjections
      Button group for projections.
    • radioButtonOrthographic

      protected JRadioButton radioButtonOrthographic
      Radio Button for Orthographic rendering.
    • radioButtonPerspective

      protected JRadioButton radioButtonPerspective
      Radio Button for Perspective rendering.
    • viewAlignedButton

      protected JRadioButton viewAlignedButton
      Radio Button for Perspective rendering.
    • viewButton

      protected JRadioButton viewButton
      Radio Button for Orthographic rendering.
    • viewTextureButtonGroup

      protected ButtonGroup viewTextureButtonGroup
      Button group for projections.
    • buttonPanel

      private JPanel buttonPanel
      DOCUMENT ME!
    • coarseValue

      private float coarseValue
      DOCUMENT ME!
    • fineValue

      private float fineValue
      DOCUMENT ME!
    • fine

      private JTextField fine
      DOCUMENT ME!
    • coarse

      private JTextField coarse
      DOCUMENT ME!
    • fineLabel

      private JLabel fineLabel
      DOCUMENT ME!
    • coarseLabel

      private JLabel coarseLabel
      DOCUMENT ME!
    • flag

      private boolean flag
      Flag indicating if box is on or off.
  • Constructor Details

    • JPanelSurfaceBox

      public JPanelSurfaceBox(RenderViewBase parent)
      Creates new dialog for turning bounding box frame on and off.
      Parameters:
      parent - Should be of type ViewJFrameSurfaceRenderer
  • 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.
    • getCoarseVal

      public float getCoarseVal()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • getMainPanel

      public JPanel getMainPanel()
      DOCUMENT ME!
      Specified by:
      getMainPanel in class JPanelRendererBase
      Returns:
      DOCUMENT ME!
    • keyTyped

      public void keyTyped(KeyEvent evt)
      DOCUMENT ME!
      Specified by:
      keyTyped in interface KeyListener
      Overrides:
      keyTyped in class JPanelRendererBase
      Parameters:
      evt - DOCUMENT ME!
    • setColorButton

      public void setColorButton(Color _color)
      DOCUMENT ME!
      Parameters:
      _color - DOCUMENT ME!
    • setEnable

      public void setEnable(boolean flag)
      DOCUMENT ME!
      Parameters:
      flag - DOCUMENT ME!
    • setTextEnabled

      public void setTextEnabled(boolean flag)
      DOCUMENT ME!
      Parameters:
      flag - DOCUMENT ME!
    • 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.
    • 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.