Class JPanelMultiDimensionalTransfer

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

public class JPanelMultiDimensionalTransfer extends JInterfaceBase implements ChangeListener
This panel contains the display panel for the 2D Histogram user-interface.
See Also:
  • Field Details

    • serialVersionUID

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

      protected JButton colorButton
      Color button for changing color.
    • saveButton

      protected JButton saveButton
      Save the current multi-histogram widgets to file.
    • loadButton

      protected JButton loadButton
      Read new multi-histogram widgets from file.
    • alphaSlider

      protected JSlider alphaSlider
      Alpha blend slider.
    • boundaryEmphasisSlider

      private JSlider boundaryEmphasisSlider
      Boundary emphasis slider slider.
    • m_kGroup

      private ButtonGroup m_kGroup
      Button group for the widget type:
    • scroller

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

      private JPanel scrollPanel
      Scroll panel that holding the all the control components.
    • m_kMultiHistogram

      private VolumeImageMultiDimensionalTransfer m_kMultiHistogram
      Displays the 2D Histogram and widgets:
    • histogramPanel

      private JPanel histogramPanel
      Panel containing the 2D Histogram display canvas:
    • imageAxis

      private ViewJComponentGraphAxes imageAxis
      Graph axes helper classes for displaying the axes of the 2D Histogram:
    • gmAxis

      private ViewJComponentGraphAxes gmAxis
    • helpPanel

      private JPanel helpPanel
    • Circle

      private static final int Circle
      See Also:
    • Square

      private static final int Square
      See Also:
    • Triangle

      private static final int Triangle
      See Also:
  • Constructor Details

    • JPanelMultiDimensionalTransfer

      public JPanelMultiDimensionalTransfer(com.jogamp.opengl.awt.GLCanvas canvas, double dpiScale, VolumeTriPlanarInterface parent, VolumeImage kVolumeImage)
      Creates new dialog for turning bounding box frame on and off.
      Parameters:
      parent - parent frame.
  • Method Details

    • actionPerformed

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

      public void disposeLocal()
      Dispose memory.
    • setMinMax

      public void setMinMax(float imageMin, float imageMax, float gmMin, float gmMax)
      Sets the minimum and maximum values of the ModelImage and the Gradient Magnitude image for displaying the graph axes of the 2D Histogram.
      Parameters:
      imageMin -
      imageMax -
      gmMin -
      gmMax -
    • getHistogram

      public VolumeImageMultiDimensionalTransfer getHistogram()
      Access to the 2D Histogram display class so it can be updated from outside this class.
      Returns:
    • 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
    • setButtonColor

      public void setButtonColor(JButton _button, Color _color)
      Description copied from class: JInterfaceBase
      Set the color of the button. Derived classes may also perform other functions.
      Overrides:
      setButtonColor in class JInterfaceBase
      Parameters:
      _button - button.
      _color - color.
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
    • update

      public void update()
      Calls update display on the 2D Histogram class.
    • updateColorButton

      public void updateColorButton(float[] afColor, float fColor)
      Overrides:
      updateColorButton in class JInterfaceBase
    • getM_kMultiHistogram

      public VolumeImageMultiDimensionalTransfer getM_kMultiHistogram()
    • init

      private void init(boolean useBoundaryEmphasis)
      Initializes GUI components.
    • updateHelp

      private void updateHelp(int iType)
    • getMultiHistogramFile

      private String getMultiHistogramFile(boolean bSave)
    • loadMultiHistograms

      private void loadMultiHistograms(String fileName)
    • saveMultiHistograms

      private void saveMultiHistograms(String fileName)