org.openbp.cockpit.modeler.figures.spline
Class ChangeConnectionStartHandle

java.lang.Object
  extended by CH.ifa.draw.standard.AbstractHandle
      extended by org.openbp.cockpit.modeler.figures.spline.ChangeConnectionHandle
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openbp.cockpit.modeler.figures.spline.ChangeConnectionHandle
ChangeConnectionHandle.CanConnectDecorator
 
Field Summary
 
Fields inherited from class org.openbp.cockpit.modeler.figures.spline.ChangeConnectionHandle
connectionFigure
 
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 org.openbp.cockpit.modeler.figures.spline.ChangeConnectionHandle
canLinkFigures, draw, findConnector, invokeEnd, invokeStart, invokeStep, source
 
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
 

Constructor Detail

ChangeConnectionStartHandle

public ChangeConnectionStartHandle(CH.ifa.draw.framework.Figure owner)
Constructs the connection handle for the given start figure.

Method Detail

target

protected CH.ifa.draw.framework.Connector target()
Gets the start figure of a connection.

Specified by:
target in class ChangeConnectionHandle

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

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 coordinate
y - Document coordinate

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


Copyright © 2011. All Rights Reserved.