fr.esrf.tangoatk.widget.util
Class MaskUndoableEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
fr.esrf.tangoatk.widget.util.MaskUndoableEdit
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.undo.UndoableEdit
public class MaskUndoableEdit
- extends javax.swing.undo.AbstractUndoableEdit
class used to undo/redo a Mask. To undo a mask, you need :
- The concerned
ImagePlus
- The
ImageProcessor before mask was applied
- The
ImageProcessor once mask applied, which is, in fact,
the current ImageProcessor of the ImagePlus
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
|
Constructor Summary |
MaskUndoableEdit(ij.ImagePlus concernedImage,
ij.process.ImageProcessor undoProcessor)
Standard Contructor |
MaskUndoableEdit(ij.ImagePlus concernedImage,
ij.process.ImageProcessor undoProcessor,
java.lang.String presentation)
Advanced Contructor |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
addEdit, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MaskUndoableEdit
public MaskUndoableEdit(ij.ImagePlus concernedImage,
ij.process.ImageProcessor undoProcessor)
- Standard Contructor
- Parameters:
concernedImage - the concerned ImagePlusundoProcessor - the ImageProcessor before mask was applied- See Also:
#MaskUndoableEdit(ImagePlus, ImageProcessor, ImageProcessor, String)
MaskUndoableEdit
public MaskUndoableEdit(ij.ImagePlus concernedImage,
ij.process.ImageProcessor undoProcessor,
java.lang.String presentation)
- Advanced Contructor
- Parameters:
concernedImage - the concerned ImagePlusundoProcessor - the ImageProcessor before mask was appliedpresentation - the presentation String - default: "Mask"
canUndo
public boolean canUndo()
- Specified by:
canUndo in interface javax.swing.undo.UndoableEdit- Overrides:
canUndo in class javax.swing.undo.AbstractUndoableEdit
canRedo
public boolean canRedo()
- Specified by:
canRedo in interface javax.swing.undo.UndoableEdit- Overrides:
canRedo in class javax.swing.undo.AbstractUndoableEdit
undo
public void undo()
throws javax.swing.undo.CannotUndoException
- Specified by:
undo in interface javax.swing.undo.UndoableEdit- Overrides:
undo in class javax.swing.undo.AbstractUndoableEdit
- Throws:
javax.swing.undo.CannotUndoException
redo
public void redo()
throws javax.swing.undo.CannotRedoException
- Specified by:
redo in interface javax.swing.undo.UndoableEdit- Overrides:
redo in class javax.swing.undo.AbstractUndoableEdit
- Throws:
javax.swing.undo.CannotRedoException
getPresentationName
public java.lang.String getPresentationName()
- Specified by:
getPresentationName in interface javax.swing.undo.UndoableEdit- Overrides:
getPresentationName in class javax.swing.undo.AbstractUndoableEdit
die
public void die()
- Specified by:
die in interface javax.swing.undo.UndoableEdit- Overrides:
die in class javax.swing.undo.AbstractUndoableEdit