org.jhotdraw.standard
Class ConnectionTool.UndoActivity

java.lang.Object
  extended by org.jhotdraw.util.UndoableAdapter
      extended by org.jhotdraw.standard.ConnectionTool.UndoActivity
All Implemented Interfaces:
Undoable
Enclosing class:
ConnectionTool

public static class ConnectionTool.UndoActivity
extends UndoableAdapter


Constructor Summary
ConnectionTool.UndoActivity(DrawingView newDrawingView, ConnectionFigure newConnection)
           
 
Method Summary
 boolean redo()
          Redo the activity
 boolean undo()
          Undo the activity
 
Methods inherited from class org.jhotdraw.util.UndoableAdapter
getAffectedFigures, getAffectedFiguresCount, getAffectedFiguresReversed, getDrawingView, isRedoable, isUndoable, release, setAffectedFigures, setRedoable, setUndoable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionTool.UndoActivity

public ConnectionTool.UndoActivity(DrawingView newDrawingView,
                                   ConnectionFigure newConnection)
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