Class JPanelNavigation

All Implemented Interfaces:
ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, RootPaneContainer, WindowConstants

public class JPanelNavigation extends JInterfaceBase implements ItemListener, ChangeListener
The navigation (for virtual bronchoscopy) fly-thru control panel.
Author:
Ruida Cheng
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • cameraRotationDegreeSlider

      private JSlider cameraRotationDegreeSlider
      camera rotation degree slider
    • cameraRotationDegreeLabel

      private JLabel cameraRotationDegreeLabel
      camera rotation degree label
    • scroller

      private JScrollPane scroller
      The scroll pane holding the panel content. Useful when the screen is small.
    • addAnnotateButton

      private JToggleButton addAnnotateButton
      button for adding annotation points for the path planning
    • createPathButton

      private JButton createPathButton
      create path planning path button.
    • clearPathButton

      private JButton clearPathButton
      cleaning the planned path button.
    • pathPlanningRadio

      private JRadioButton pathPlanningRadio
      Radio check button the path planning.
    • mouseControlRadio

      private JRadioButton mouseControlRadio
      Radio check button for mouse control.
    • radioButtonGroupFlyMode

      private ButtonGroup radioButtonGroupFlyMode
      radio check button for fly-thru mode.
  • Constructor Details

    • JPanelNavigation

      public JPanelNavigation(VolumeTriPlanarInterface kVolumeViewer)
      Constructor.
      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.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • disposeLocal

      public void disposeLocal()
    • getNaviCheckBox

      public JCheckBox getNaviCheckBox()
      Get the navigation checkbox, fly-thru checkbox
      Returns:
      true or false
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Specified by:
      itemStateChanged in interface ItemListener
    • resizePanel

      public void resizePanel(int panelWidth, int frameHeight)
      Resizing the control panel with ViewJFrameVolumeView's frame width and height.
      Parameters:
      panelWidth - int width
      frameHeight - int height
    • stateChanged

      public void stateChanged(ChangeEvent event)
      Specified by:
      stateChanged in interface ChangeListener
    • init

      private void init()
      Initializes the GUI components.