Class JPanelCustomBlend

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

public class JPanelCustomBlend extends JInterfaceBase implements ChangeListener
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • colorButton

      protected JButton colorButton
    • alphaSlider

      protected JSlider alphaSlider
    • scroller

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

      private JComboBox m_kBlendEquationColor
      The combo box for the Blend Equation mode to display.
    • m_kLogicOp

      private JComboBox m_kLogicOp
      The combo box for the Logic Operation mode to display.
    • m_kSrcBlend

      private JComboBox m_kSrcBlend
    • m_kDstBlend

      private JComboBox m_kDstBlend
    • m_bUpdate

      private boolean m_bUpdate
  • Constructor Details

    • JPanelCustomBlend

      public JPanelCustomBlend(VolumeTriPlanarInterface kVolumeViewer)
      Constructor.
      Parameters:
      kVolumeViewer - parent frame.
  • Method Details

    • actionPerformed

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

      public void disposeLocal()
      Dispose the local memory.
    • getEquation

      public int getEquation()
    • setEquation

      public void setEquation(int i)
    • getSource

      public int getSource()
    • setSource

      public void setSource(int i)
    • getDestination

      public int getDestination()
    • setDestination

      public void setDestination(int i)
    • getColor

      public Color getColor()
    • setColor

      public void setColor(Color c)
    • getAlpha

      public int getAlpha()
    • setAlpha

      public void setAlpha(int value)
    • setUpdate

      public void setUpdate(boolean value)
    • 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
    • init

      private void init()
      Initializes the GUI components.
    • updateVolumeRenderer

      public void updateVolumeRenderer()