Class JDialogNColors

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

public class JDialogNColors extends JDialogBase
Simple dialog to change the number of colors in the histogram LUT.
Version:
1.0 June 1, 2002
Author:
Neva Cherniavsky
See Also:
  • Field Details

    • serialVersionUID

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

      private JTextField field
      DOCUMENT ME!
    • nColors

      private int nColors
      DOCUMENT ME!
  • Constructor Details

    • JDialogNColors

      public JDialogNColors(Frame parent)
      Creates modal dialog for entering number of colors for histogram LUT.
      Parameters:
      parent - Parent frame.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Tests then sets the number of colors when the "OK" button is pressed. Sets the cancel flag and disposes when the "Cancel" button is pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggered this function.
    • getNColors

      public int getNColors()
      Accessor to get the number of colors.
      Returns:
      The number of colors.
    • init

      private void init()
      Initializes GUI components and adds them to the dialog.