|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractHandle
org.jhotdraw.standard.ChangeConnectionHandle
org.jhotdraw.standard.ChangeConnectionEndHandle
A handle to reconnect the end point of a connection to another figure.
Nested Class Summary | |
static class |
ChangeConnectionEndHandle.UndoActivity
|
Field Summary |
Fields inherited from class org.jhotdraw.standard.AbstractHandle |
HANDLESIZE |
Constructor Summary | |
ChangeConnectionEndHandle(ConnectionFigure owner)
Constructs the connection handle. |
Method Summary | |
protected boolean |
canConnectTo(Figure figure)
Called to check whether this end of the connection can connect to the given target figure. |
protected void |
connect(Connector c)
Sets the end of the connection. |
protected Undoable |
createUndoActivity(DrawingView newView)
Factory method for undo activity |
protected void |
disconnect()
Disconnects the end figure. |
java.awt.Point |
locate()
Returns the end point of the connection. |
protected void |
setPoint(int x,
int y)
Sets the end point of the connection. |
protected Connector |
target()
Gets the end figure of a connection. |
Methods inherited from class org.jhotdraw.standard.ChangeConnectionHandle |
draw, findConnector, getConnection, getTargetFigure, invokeEnd, invokeStart, invokeStep, setConnection, setTargetFigure, source |
Methods inherited from class org.jhotdraw.standard.AbstractHandle |
containsPoint, displayBox, getCursor, getUndoActivity, invokeEnd, invokeStart, invokeStep, owner, setUndoActivity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChangeConnectionEndHandle(ConnectionFigure owner)
Method Detail |
protected Connector target()
target
in class ChangeConnectionHandle
protected void disconnect()
disconnect
in class ChangeConnectionHandle
protected void connect(Connector c)
connect
in class ChangeConnectionHandle
protected void setPoint(int x, int y)
setPoint
in class ChangeConnectionHandle
public java.awt.Point locate()
protected Undoable createUndoActivity(DrawingView newView)
createUndoActivity
in class ChangeConnectionHandle
protected boolean canConnectTo(Figure figure)
ChangeConnectionHandle
canConnectTo
in class ChangeConnectionHandle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |