org.jhotdraw.figures
Class PolyLineHandle.UndoActivity
java.lang.Object
org.jhotdraw.util.UndoableAdapter
org.jhotdraw.figures.PolyLineHandle.UndoActivity
- All Implemented Interfaces:
- Undoable
- Direct Known Subclasses:
- PolygonHandle.UndoActivity
- Enclosing class:
- PolyLineHandle
public static class PolyLineHandle.UndoActivity
- extends UndoableAdapter
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolyLineHandle.UndoActivity
public PolyLineHandle.UndoActivity(DrawingView newView,
int newPointIndex)
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
setOldPoint
public void setOldPoint(java.awt.Point newOldPoint)
getOldPoint
public java.awt.Point getOldPoint()
setPointIndex
public void setPointIndex(int newPointIndex)
getPointIndex
public int getPointIndex()