fr.esrf.tangoatk.widget.util
Class RoiDefaultUndoableEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
fr.esrf.tangoatk.widget.util.RoiDefaultUndoableEdit
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.undo.UndoableEdit
public class RoiDefaultUndoableEdit
- extends javax.swing.undo.AbstractUndoableEdit
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
Roi before operation
- The handled
Roi before operation
- The
Roi Vectors after operation, which are, in fact, the
current Roi Vectors of the AdvancedImagePlus
- The current validated
Roi
- The current handled
Roi
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
|
Constructor Summary |
RoiDefaultUndoableEdit(AdvancedImagePlus concernedImage,
java.util.Vector<ij.gui.Roi> undoRoiVector,
java.util.Vector<ij.gui.Roi> undoSelectedRois,
java.util.Vector<ij.gui.Roi> undoInnerRois,
java.util.Vector<ij.gui.Roi> undoOuterRois,
ij.gui.Roi undoValidatedRoi,
ij.gui.Roi undoHandledRoi)
|
RoiDefaultUndoableEdit(AdvancedImagePlus concernedImage,
java.util.Vector<ij.gui.Roi> undoRoiVector,
java.util.Vector<ij.gui.Roi> undoSelectedRois,
java.util.Vector<ij.gui.Roi> undoInnerRois,
java.util.Vector<ij.gui.Roi> undoOuterRois,
ij.gui.Roi undoValidatedRoi,
ij.gui.Roi undoHandledRoi,
java.lang.String presentation)
|
| 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 |
RoiDefaultUndoableEdit
public RoiDefaultUndoableEdit(AdvancedImagePlus concernedImage,
java.util.Vector<ij.gui.Roi> undoRoiVector,
java.util.Vector<ij.gui.Roi> undoSelectedRois,
java.util.Vector<ij.gui.Roi> undoInnerRois,
java.util.Vector<ij.gui.Roi> undoOuterRois,
ij.gui.Roi undoValidatedRoi,
ij.gui.Roi undoHandledRoi)
RoiDefaultUndoableEdit
public RoiDefaultUndoableEdit(AdvancedImagePlus concernedImage,
java.util.Vector<ij.gui.Roi> undoRoiVector,
java.util.Vector<ij.gui.Roi> undoSelectedRois,
java.util.Vector<ij.gui.Roi> undoInnerRois,
java.util.Vector<ij.gui.Roi> undoOuterRois,
ij.gui.Roi undoValidatedRoi,
ij.gui.Roi undoHandledRoi,
java.lang.String presentation)
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