javapoint.undo
Class UndoableGraphicObjectAfterFlip
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javapoint.undo.UndoableGraphicObjectAfterFlip
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.undo.UndoableEdit
public class UndoableGraphicObjectAfterFlip
- extends javax.swing.undo.AbstractUndoableEdit
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
addEdit, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UndoableGraphicObjectAfterFlip
public UndoableGraphicObjectAfterFlip(GraphicObject element,
boolean flipHorizontal)
- Parameters:
element - represents graphic object which was just createdflipHorizontal - represents horisonlal flip was done. If false - vertical flip was done.\
undo
public void undo()
throws javax.swing.undo.CannotUndoException
- Performs undo opeation
- 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
- Performs redo opeation
- Specified by:
redo in interface javax.swing.undo.UndoableEdit- Overrides:
redo in class javax.swing.undo.AbstractUndoableEdit
- Throws:
javax.swing.undo.CannotRedoException
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
getPresentationName
public java.lang.String getPresentationName()
- Specified by:
getPresentationName in interface javax.swing.undo.UndoableEdit- Overrides:
getPresentationName in class javax.swing.undo.AbstractUndoableEdit