Class JDialogRandomizeSliceOrder

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

public class JDialogRandomizeSliceOrder extends JDialogScriptableBase implements AlgorithmInterface
Dialog to call the randomize the order of 3D dataset. This dialog will not be visible because it does not require user input at this time. It was made a dialog object because it may in the future require user input and to be consistent with the dialog/algorithm paradigm. In should be noted, that the algorithms are executed in their own thread.
Version:
0.1 Nov 17, 1998
Author:
Matthew J. McAuliffe, Ph.D.
See Also:
  • Field Details

  • Constructor Details

    • JDialogRandomizeSliceOrder

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

      public JDialogRandomizeSliceOrder(Frame theParentFrame, ModelImage im)
      Run the algorithm.
      Parameters:
      theParentFrame - parent frame
      im - source image
  • Method Details

    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      This method is required if the AlgorithmPerformed interface is implemented. It is called by the algorithms when it has completed or failed to to complete, so that the dialog can be display the result image and/or clean up.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - Algorithm that caused the event.
    • 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.
    • 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
    • callAlgorithm

      public void callAlgorithm()
      Locks the images, then runs the inverse slice order algorithm.
      Specified by:
      callAlgorithm in class JDialogScriptableBase
    • init

      private void init()
      Does nothing at the moment, no dialog is created.