org.jhotdraw.standard
Class DragTracker.UndoActivity
java.lang.Object
org.jhotdraw.util.UndoableAdapter
org.jhotdraw.standard.DragTracker.UndoActivity
- All Implemented Interfaces:
- Undoable
- Enclosing class:
- DragTracker
public static class DragTracker.UndoActivity
- extends UndoableAdapter
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DragTracker.UndoActivity
public DragTracker.UndoActivity(DrawingView newDrawingView,
java.awt.Point newOriginalPoint)
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
setBackupPoint
public void setBackupPoint(java.awt.Point newBackupPoint)
getBackupPoint
public java.awt.Point getBackupPoint()
setOriginalPoint
public void setOriginalPoint(java.awt.Point newOriginalPoint)
getOriginalPoint
public java.awt.Point getOriginalPoint()
moveAffectedFigures
public void moveAffectedFigures(java.awt.Point startPoint,
java.awt.Point endPoint)