Class JDialogQuantifyMask

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

public class JDialogQuantifyMask extends JDialogScriptableBase implements AlgorithmInterface
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

  • Constructor Details

    • JDialogQuantifyMask

      public JDialogQuantifyMask()
      Empty constructor needed for dynamic instantiation (used during scripting).
    • JDialogQuantifyMask

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

    • callAlgorithm

      protected void callAlgorithm()
      Calls the algorithm.
      Specified by:
      callAlgorithm in class JDialogScriptableBase
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      Description copied from interface: AlgorithmInterface
      Called after an algorithm this listener is registered to exits (maybe successfully, maybe not). If the algorithm is run in a separate thread, this call will be made within that thread. If not, this call will be made from that same, shared thread.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - the algorithm which has just completed
    • setGUIFromParams

      protected void setGUIFromParams()
      Set the dialog GUI using the script parameters while running this algorithm as part of a script.
      Specified by:
      setGUIFromParams in class JDialogScriptableBase
    • storeParamsFromGUI

      protected void storeParamsFromGUI() throws ParserException
      Record the parameters just used to run this algorithm in a script.
      Specified by:
      storeParamsFromGUI in class JDialogScriptableBase
      Throws:
      ParserException - If there is a problem creating/recording the new parameters.