JHotDraw 6.0b1

org.jhotdraw.standard
Class ChangeConnectionHandle.UndoActivity

java.lang.Object
  extended by org.jhotdraw.util.UndoableAdapter
      extended by org.jhotdraw.standard.ChangeConnectionHandle.UndoActivity
All Implemented Interfaces:
Undoable
Direct Known Subclasses:
ChangeConnectionEndHandle.UndoActivity, ChangeConnectionStartHandle.UndoActivity
Enclosing class:
ChangeConnectionHandle

public abstract static class ChangeConnectionHandle.UndoActivity
extends UndoableAdapter


Constructor Summary
ChangeConnectionHandle.UndoActivity(DrawingView newView)
           
 
Method Summary
 Connector getOldConnector()
           
 boolean redo()
          Redo the activity
protected abstract  Connector replaceConnector(ConnectionFigure connection)
           
 void setOldConnector(Connector newOldConnector)
           
 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

ChangeConnectionHandle.UndoActivity

public ChangeConnectionHandle.UndoActivity(DrawingView newView)
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

replaceConnector

protected abstract Connector replaceConnector(ConnectionFigure connection)

setOldConnector

public void setOldConnector(Connector newOldConnector)

getOldConnector

public Connector getOldConnector()

JHotDraw 6.0b1