JHotDraw 6.0b1

org.jhotdraw.figures
Class PolyLineHandle.UndoActivity

java.lang.Object
  extended by org.jhotdraw.util.UndoableAdapter
      extended by org.jhotdraw.figures.PolyLineHandle.UndoActivity
All Implemented Interfaces:
Undoable
Direct Known Subclasses:
PolygonHandle.UndoActivity
Enclosing class:
PolyLineHandle

public static class PolyLineHandle.UndoActivity
extends UndoableAdapter


Constructor Summary
PolyLineHandle.UndoActivity(DrawingView newView, int newPointIndex)
           
 
Method Summary
 java.awt.Point getOldPoint()
           
 int getPointIndex()
           
protected  boolean movePointToOldLocation()
           
 boolean redo()
          Redo the activity
 void setOldPoint(java.awt.Point newOldPoint)
           
 void setPointIndex(int newPointIndex)
           
 boolean undo()
          Undo the activity
 
Methods inherited from class org.jhotdraw.util.UndoableAdapter
duplicateAffectedFigures, getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, release, rememberFigures, setAffectedFigures, setDrawingView, setRedoable, setUndoable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolyLineHandle.UndoActivity

public PolyLineHandle.UndoActivity(DrawingView newView,
                                   int newPointIndex)
Method Detail

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

movePointToOldLocation

protected boolean movePointToOldLocation()

setOldPoint

public void setOldPoint(java.awt.Point newOldPoint)

getOldPoint

public java.awt.Point getOldPoint()

setPointIndex

public void setPointIndex(int newPointIndex)

getPointIndex

public int getPointIndex()

JHotDraw 6.0b1