org.openbp.cockpit.modeler.figures.spline
Class ChangeConnectionStartHandle
java.lang.Object
CH.ifa.draw.standard.AbstractHandle
org.openbp.cockpit.modeler.figures.spline.ChangeConnectionHandle
org.openbp.cockpit.modeler.figures.spline.ChangeConnectionStartHandle
- All Implemented Interfaces:
- CH.ifa.draw.framework.Handle
public class ChangeConnectionStartHandle
- extends ChangeConnectionHandle
Handle to reconnect the
start of a connection to another figure.
- Author:
- Stephan Moritz
| Fields inherited from class CH.ifa.draw.standard.AbstractHandle |
HANDLESIZE |
|
Constructor Summary |
ChangeConnectionStartHandle(CH.ifa.draw.framework.Figure owner)
Constructs the connection handle for the given start figure. |
|
Method Summary |
protected void |
connect(CH.ifa.draw.framework.Connector c)
Sets the start of the connection. |
protected void |
disconnect()
Disconnects the start figure. |
java.awt.Point |
locate()
Returns the start point of the connection. |
protected void |
setPoint(int x,
int y)
Sets the start point of the connection. |
protected CH.ifa.draw.framework.Connector |
target()
Gets the start 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 |
ChangeConnectionStartHandle
public ChangeConnectionStartHandle(CH.ifa.draw.framework.Figure owner)
- Constructs the connection handle for the given start figure.
- See Also:
ChangeConnectionHandle.target()
target
protected CH.ifa.draw.framework.Connector target()
- Gets the start figure of a connection.
- Specified by:
target in class ChangeConnectionHandle
- See Also:
ChangeConnectionHandle.disconnect()
connect
protected void connect(CH.ifa.draw.framework.Connector c)
- Sets the start 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 start figure.
- Specified by:
disconnect in class ChangeConnectionHandle
setPoint
protected void setPoint(int x,
int y)
- Sets the start point of the connection.
- Specified by:
setPoint in class ChangeConnectionHandle
- Parameters:
x - Document coordinatey - Document coordinate- See Also:
ChangeConnectionHandle.setPoint(int x, int y)
locate
public java.awt.Point locate()
- Returns the start point of the connection.
- Specified by:
locate in interface CH.ifa.draw.framework.Handle- Specified by:
locate in class CH.ifa.draw.standard.AbstractHandle
- See Also:
AbstractHandle.locate()
Copyright © 2011. All Rights Reserved.