CH.ifa.draw.standard
Class ChangeConnectionStartHandle

java.lang.Object
  extended by CH.ifa.draw.standard.AbstractHandle
      extended by CH.ifa.draw.standard.ChangeConnectionHandle
          extended by CH.ifa.draw.standard.ChangeConnectionStartHandle
All Implemented Interfaces:
Handle

public class ChangeConnectionStartHandle
extends ChangeConnectionHandle

Handle to reconnect the start of a connection to another figure.


Field Summary
 
Fields inherited from class CH.ifa.draw.standard.ChangeConnectionHandle
fConnection, fOriginalTarget, fStart, fTarget
 
Fields inherited from class CH.ifa.draw.standard.AbstractHandle
HANDLESIZE
 
Constructor Summary
ChangeConnectionStartHandle(Figure owner)
          Constructs the connection handle for the given start figure.
 
Method Summary
protected  void connect(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  Connector target()
          Gets the start figure of a connection.
 
Methods inherited from class CH.ifa.draw.standard.ChangeConnectionHandle
draw, findConnector, invokeEnd, invokeStart, invokeStep, source
 
Methods inherited from class CH.ifa.draw.standard.AbstractHandle
containsPoint, displayBox, invokeEnd, invokeStart, invokeStep, owner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeConnectionStartHandle

public ChangeConnectionStartHandle(Figure owner)
Constructs the connection handle for the given start figure.

Method Detail

target

protected Connector target()
Gets the start figure of a connection.

Specified by:
target in class ChangeConnectionHandle

disconnect

protected void disconnect()
Disconnects the start figure.

Specified by:
disconnect in class ChangeConnectionHandle

connect

protected void connect(Connector c)
Sets the start of the connection.

Specified by:
connect in class ChangeConnectionHandle

setPoint

protected void setPoint(int x,
                        int y)
Sets the start point of the connection.

Specified by:
setPoint in class ChangeConnectionHandle

locate

public java.awt.Point locate()
Returns the start point of the connection.

Specified by:
locate in interface Handle
Specified by:
locate in class AbstractHandle