Class JDialogPaintRGBComponents

All Implemented Interfaces:
DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogPaintRGBComponents extends JDialogBase implements ItemListener
Simple dialog to change Opacity Settings (1 = opaque, 0 = transparent).
Version:
1.0 Sept 17, 1999
Author:
Matthew J. McAuliffe, Ph.D.
See Also:
  • Field Details

    • serialVersionUID

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

      private JCheckBox useRBox
    • useGBox

      private JCheckBox useGBox
    • useBBox

      private JCheckBox useBBox
  • Constructor Details

    • JDialogPaintRGBComponents

      public JDialogPaintRGBComponents(Frame theParentFrame, String rgbStr)
      Creates new dialog with a slider and close button.
      Parameters:
      theParentFrame - The parent frame
      cntrls - The controls that the opacity will apply to.
      isVisible - Dialog visible or not
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Sets opacity once close button is pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggered function
    • init

      private void init(String rgbStr)
      Makes slider to set opacity of VOI. Opaque = 1, Transparency = 0.
      Parameters:
      initValue - Initial value of slider.