Package fr.esrf.tangoatk.widget.util
Class RoiDefaultUndoableEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
fr.esrf.tangoatk.widget.util.RoiDefaultUndoableEdit
- All Implemented Interfaces:
Serializable,UndoableEdit
class used to undo/redo a
Roi operation (like combination,
deletion, etc.). To undo a Roi operation, you need :
- The concerned
AdvancedImagePlus - The
Roi Vectors before operation - The validated
Roibefore operation - The handled
Roibefore operation - The
Roi Vectors after operation, which are, in fact, the currentRoi Vectors of theAdvancedImagePlus - The current validated
Roi - The current handled
Roi
- Author:
- GIRARDOT
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName -
Constructor Summary
ConstructorsConstructorDescriptionRoiDefaultUndoableEdit(AdvancedImagePlus concernedImage, Vector<ij.gui.Roi> undoRoiVector, Vector<ij.gui.Roi> undoSelectedRois, Vector<ij.gui.Roi> undoInnerRois, Vector<ij.gui.Roi> undoOuterRois, ij.gui.Roi undoValidatedRoi, ij.gui.Roi undoHandledRoi) RoiDefaultUndoableEdit(AdvancedImagePlus concernedImage, Vector<ij.gui.Roi> undoRoiVector, Vector<ij.gui.Roi> undoSelectedRois, Vector<ij.gui.Roi> undoInnerRois, Vector<ij.gui.Roi> undoOuterRois, ij.gui.Roi undoValidatedRoi, ij.gui.Roi undoHandledRoi, String presentation) -
Method Summary
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
RoiDefaultUndoableEdit
public RoiDefaultUndoableEdit(AdvancedImagePlus concernedImage, Vector<ij.gui.Roi> undoRoiVector, Vector<ij.gui.Roi> undoSelectedRois, Vector<ij.gui.Roi> undoInnerRois, Vector<ij.gui.Roi> undoOuterRois, ij.gui.Roi undoValidatedRoi, ij.gui.Roi undoHandledRoi) -
RoiDefaultUndoableEdit
-
-
Method Details
-
canUndo
public boolean canUndo()- Specified by:
canUndoin interfaceUndoableEdit- Overrides:
canUndoin classAbstractUndoableEdit
-
canRedo
public boolean canRedo()- Specified by:
canRedoin interfaceUndoableEdit- Overrides:
canRedoin classAbstractUndoableEdit
-
undo
- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
redo
- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit- Throws:
CannotRedoException
-
getPresentationName
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-
die
public void die()- Specified by:
diein interfaceUndoableEdit- Overrides:
diein classAbstractUndoableEdit
-