Class MagicWandInteractor

java.lang.Object
com.bc.ceres.swing.figure.AbstractInteractor
com.bc.ceres.swing.figure.ViewportInteractor
org.esa.snap.rcp.magicwand.MagicWandInteractor
All Implemented Interfaces:
com.bc.ceres.swing.figure.Interactor, KeyListener, MouseListener, MouseMotionListener, EventListener, MagicWandModel.Listener

public class MagicWandInteractor extends com.bc.ceres.swing.figure.ViewportInteractor implements MagicWandModel.Listener
An interactor that lets users create masks using a "magic wand". The mask comprises all pixels in the image that are "spectrally" close to the pixel that has been selected using the magic wand.
Since:
BEAM 4.10
  • Constructor Details

    • MagicWandInteractor

      public MagicWandInteractor()
  • Method Details

    • isModelModified

      public boolean isModelModified()
    • setModelModified

      public void setModelModified(boolean modelModified)
    • modelChanged

      public void modelChanged(MagicWandModel model, boolean recomputeMask)
      Specified by:
      modelChanged in interface MagicWandModel.Listener
    • getOptionsWindow

      public Window getOptionsWindow()
    • activate

      public boolean activate()
      Specified by:
      activate in interface com.bc.ceres.swing.figure.Interactor
      Overrides:
      activate in class com.bc.ceres.swing.figure.AbstractInteractor
    • deactivate

      public void deactivate()
      Specified by:
      deactivate in interface com.bc.ceres.swing.figure.Interactor
      Overrides:
      deactivate in class com.bc.ceres.swing.figure.AbstractInteractor
    • mouseClicked

      public void mouseClicked(MouseEvent event)
      Specified by:
      mouseClicked in interface MouseListener
      Overrides:
      mouseClicked in class com.bc.ceres.swing.figure.AbstractInteractor
    • getModel

      public MagicWandModel getModel()
    • setUndoContext

      public void setUndoContext(com.bc.ceres.swing.undo.UndoContext undoContext)