Class JDialogIntensityPaint

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

public class JDialogIntensityPaint extends JDialogBase
Simple dialog to change desired intensity level for painting.
Author:
Neva Cherniavsky
See Also:
  • Field Details

    • serialVersionUID

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

      private JLabel inputLabel
      DOCUMENT ME!
    • inputText

      private JTextField inputText
      DOCUMENT ME!
    • intensityDouble

      private double intensityDouble
      DOCUMENT ME!
    • intensityStringValue

      private String intensityStringValue
      DOCUMENT ME!
    • outMax

      private double outMax
      DOCUMENT ME!
    • outMin

      private double outMin
      DOCUMENT ME!
  • Constructor Details

    • JDialogIntensityPaint

      public JDialogIntensityPaint(Frame theParentFrame, String name, int type)
      Creates new dialog for getting the intensity of the paint.
      Parameters:
      theParentFrame - Parent frame
      name - Current intensity string
      type - Image type.
    • JDialogIntensityPaint

      public JDialogIntensityPaint(Frame theParentFrame, String name, int type, boolean isVisible)
      Creates new dialog for getting the intensity of the paint.
      Parameters:
      theParentFrame - Parent frame
      name - Current intensity string
      type - Image type.
      isVisible - Dialog visible or not.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Tests if entered intensity is within bounds and saves it.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggered function
    • getIntensity

      public double getIntensity()
      Accessor that returns current intensity value to commit.
      Returns:
      Intensity value.
    • getIntensityValue

      public String getIntensityValue()
      Accessor that returns current intensity value to commit in the form of a string.
      Returns:
      Intensity value.
    • getMainPanel

      public JPanel getMainPanel(String name, int type)
      Initializes GUI components and displays dialog.
      Parameters:
      name - Current intensity string
      type - Image type.
      Returns:
      DOCUMENT ME!
    • init

      private void init(String name, int type)
      Initializes GUI components and displays dialog.
      Parameters:
      name - Current intensity string
      type - Image type.