org.jhotdraw.draw.event
Class CompositeFigureEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
org.jhotdraw.undo.CompositeEdit
org.jhotdraw.draw.event.CompositeFigureEdit
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.undo.UndoableEdit
public class CompositeFigureEdit
- extends CompositeEdit
A CompositeEdit which invokes figure.willChange
and figure.changed when undoing or redoing a change.
- Version:
- $Id: CompositeFigureEdit.java 666 2010-07-28 19:11:46Z rawcoder $
- Author:
- Werner Randelshofer
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.undo.CompoundEdit |
edits |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
RedoName, UndoName |
|
Constructor Summary |
CompositeFigureEdit(Figure figure)
Creates a new CompositeFigureEdit which uses
CompoundEdit.getPresentatioName and is significant. |
CompositeFigureEdit(Figure figure,
boolean isSignificant)
Creates new CompositeFigureEdit which uses the specified significance. |
CompositeFigureEdit(Figure figure,
java.lang.String presentationName)
Creates new CompositeFigureEdit which uses the specified presentation name. |
CompositeFigureEdit(Figure figure,
java.lang.String presentationName,
boolean isSignificant)
Creates new CompositeEdit. |
| Methods inherited from class javax.swing.undo.CompoundEdit |
canRedo, canUndo, die, end, isInProgress, lastEdit, toString |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
replaceEdit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CompositeFigureEdit
public CompositeFigureEdit(Figure figure)
- Creates a new
CompositeFigureEdit which uses
CompoundEdit.getPresentatioName and is significant.
- See Also:
CompoundEdit.getPresentationName()
CompositeFigureEdit
public CompositeFigureEdit(Figure figure,
boolean isSignificant)
- Creates new CompositeFigureEdit which uses the specified significance.
- See Also:
CompoundEdit.getPresentationName()
CompositeFigureEdit
public CompositeFigureEdit(Figure figure,
java.lang.String presentationName)
- Creates new CompositeFigureEdit which uses the specified presentation name.
- See Also:
CompoundEdit.getPresentationName()
CompositeFigureEdit
public CompositeFigureEdit(Figure figure,
java.lang.String presentationName,
boolean isSignificant)
- Creates new CompositeEdit.
Which uses the given presentation name.
If the presentation name is null, then CompoundEdit.getPresentatioName
is used.
- See Also:
CompoundEdit.getPresentationName()
undo
public void undo()
- Specified by:
undo in interface javax.swing.undo.UndoableEdit- Overrides:
undo in class javax.swing.undo.CompoundEdit
redo
public void redo()
- Specified by:
redo in interface javax.swing.undo.UndoableEdit- Overrides:
redo in class javax.swing.undo.CompoundEdit