Class JDialogVABRA

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

public class JDialogVABRA extends JDialogBase implements AlgorithmInterface
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • imageA

      private ModelImage imageA
      source image.
    • imageB

      private ModelImage imageB
      target image
    • comboBoxImage

      private JComboBox comboBoxImage
      drop-down box for selecting available images
  • Constructor Details

    • JDialogVABRA

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

      public JDialogVABRA(Frame theParentFrame, ModelImage im)
      Creates new image calculator dialog and displays.
      Parameters:
      theParentFrame - Parent frame.
      im - Source image.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed and calls the algorithm.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - event that triggers function
    • 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
    • callAlgorithm

      protected void callAlgorithm()
      Once all the necessary variables are set, call the Gaussian Blur algorithm based on what type of image this is and whether or not there is a separate destination image.
    • buildComboBoxImage

      private void buildComboBoxImage()
      Builds a list of images to operate on from the template image.
    • init

      private void init()
      Sets up the GUI (panels, buttons, etc) and displays it on the screen.