org.jhotdraw.standard
Class AlignCommand.UndoActivity
java.lang.Object
org.jhotdraw.util.UndoableAdapter
org.jhotdraw.standard.AlignCommand.UndoActivity
- All Implemented Interfaces:
- Undoable
- Enclosing class:
- AlignCommand
public static class AlignCommand.UndoActivity
- extends UndoableAdapter
| Methods inherited from class org.jhotdraw.util.UndoableAdapter |
duplicateAffectedFigures, getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, release, rememberFigures, setDrawingView, setRedoable, setUndoable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myOriginalPoints
private java.util.Hashtable myOriginalPoints
myAppliedAlignment
private AlignCommand.Alignment myAppliedAlignment
AlignCommand.UndoActivity
public AlignCommand.UndoActivity(DrawingView newView,
AlignCommand.Alignment newAlignment)
undo
public boolean undo()
- Description copied from class:
UndoableAdapter
- Undo the activity
- Specified by:
undo in interface Undoable- Overrides:
undo in class UndoableAdapter
- Returns:
- true if the activity could be undone, false otherwise
redo
public boolean redo()
- Description copied from class:
UndoableAdapter
- Redo the activity
- Specified by:
redo in interface Undoable- Overrides:
redo in class UndoableAdapter
- Returns:
- true if the activity could be redone, false otherwise
setAppliedAlignment
protected void setAppliedAlignment(AlignCommand.Alignment newAlignment)
getAppliedAlignment
public AlignCommand.Alignment getAppliedAlignment()
addOriginalPoint
protected void addOriginalPoint(Figure f)
getOriginalPoint
public java.awt.Point getOriginalPoint(Figure f)
alignAffectedFigures
public void alignAffectedFigures(AlignCommand.Alignment applyAlignment)
setAffectedFigures
public void setAffectedFigures(FigureEnumeration fe)
- Specified by:
setAffectedFigures in interface Undoable- Overrides:
setAffectedFigures in class UndoableAdapter