public class MaskUndoableEdit
extends javax.swing.undo.AbstractUndoableEdit
ImagePlus
ImageProcessor
before mask was appliedImageProcessor
once mask applied, which is, in fact,
the current ImageProcessor
of the ImagePlus
Constructor and Description |
---|
MaskUndoableEdit(ij.ImagePlus concernedImage,
ij.process.ImageProcessor undoProcessor)
Standard Contructor
|
MaskUndoableEdit(ij.ImagePlus concernedImage,
ij.process.ImageProcessor undoProcessor,
java.lang.String presentation)
Advanced Contructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRedo() |
boolean |
canUndo() |
void |
die() |
java.lang.String |
getPresentationName() |
void |
redo() |
void |
undo() |
public MaskUndoableEdit(ij.ImagePlus concernedImage, ij.process.ImageProcessor undoProcessor)
concernedImage
- the concerned ImagePlus
undoProcessor
- the ImageProcessor
before mask was applied#MaskUndoableEdit(ImagePlus, ImageProcessor, ImageProcessor, String)
public MaskUndoableEdit(ij.ImagePlus concernedImage, ij.process.ImageProcessor undoProcessor, java.lang.String presentation)
concernedImage
- the concerned ImagePlus
undoProcessor
- the ImageProcessor
before mask was appliedpresentation
- the presentation String
- default: "Mask"public boolean canUndo()
canUndo
in interface javax.swing.undo.UndoableEdit
canUndo
in class javax.swing.undo.AbstractUndoableEdit
public boolean canRedo()
canRedo
in interface javax.swing.undo.UndoableEdit
canRedo
in class javax.swing.undo.AbstractUndoableEdit
public void undo() throws javax.swing.undo.CannotUndoException
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CannotUndoException
public void redo() throws javax.swing.undo.CannotRedoException
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CannotRedoException
public java.lang.String getPresentationName()
getPresentationName
in interface javax.swing.undo.UndoableEdit
getPresentationName
in class javax.swing.undo.AbstractUndoableEdit
public void die()
die
in interface javax.swing.undo.UndoableEdit
die
in class javax.swing.undo.AbstractUndoableEdit