org.openbp.cockpit.modeler.figures.spline
Class ChangeConnectionEndHandle
java.lang.Object
CH.ifa.draw.standard.AbstractHandle
org.openbp.cockpit.modeler.figures.spline.ChangeConnectionHandle
org.openbp.cockpit.modeler.figures.spline.ChangeConnectionEndHandle
- All Implemented Interfaces:
- CH.ifa.draw.framework.Handle
public class ChangeConnectionEndHandle
- extends ChangeConnectionHandle
A handle to reconnect the end point of a connection to another figure.
- Author:
- Stephan Moritz
| Fields inherited from class CH.ifa.draw.standard.AbstractHandle |
HANDLESIZE |
|
Method Summary |
protected void |
connect(CH.ifa.draw.framework.Connector c)
Sets the end of the connection. |
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 CH.ifa.draw.framework.Connector |
target()
Gets the end figure of a connection. |
| Methods inherited from class CH.ifa.draw.standard.AbstractHandle |
containsPoint, displayBox, getUndoActivity, invokeEnd, invokeStart, invokeStep, owner, setUndoActivity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChangeConnectionEndHandle
public ChangeConnectionEndHandle(CH.ifa.draw.framework.Figure owner)
- Constructor.
- Parameters:
owner - Owner figure
target
protected CH.ifa.draw.framework.Connector target()
- Gets the end figure of a connection.
- Specified by:
target in class ChangeConnectionHandle
connect
protected void connect(CH.ifa.draw.framework.Connector c)
- Sets the end of the connection.
- Specified by:
connect in class ChangeConnectionHandle
- Parameters:
c - Connector of the figure to connect to- See Also:
ChangeConnectionHandle.connect(Connector c)
disconnect
protected void disconnect()
- Disconnects the end figure.
- Specified by:
disconnect in class ChangeConnectionHandle
setPoint
protected void setPoint(int x,
int y)
- Sets the end point of the connection.
- Specified by:
setPoint in class ChangeConnectionHandle
- Parameters:
x - Coordinatey - Coordinate
locate
public java.awt.Point locate()
- Returns the end point of the connection.
- Specified by:
locate in interface CH.ifa.draw.framework.Handle- Specified by:
locate in class CH.ifa.draw.standard.AbstractHandle
Copyright © 2011. All Rights Reserved.