All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.standard.ChangeConnectionHandle

java.lang.Object
   |
   +----CH.ifa.draw.standard.AbstractHandle
           |
           +----CH.ifa.draw.standard.ChangeConnectionHandle

public abstract class ChangeConnectionHandle
extends AbstractHandle
ChangeConnectionHandle factors the common code for handles that can be used to reconnect connections.

See Also:
ChangeConnectionEndHandle, ChangeConnectionStartHandle

Variable Index

 o fConnection
 o fOriginalTarget
 o fStart
 o fTarget

Constructor Index

 o ChangeConnectionHandle(Figure)
Initializes the change connection handle.

Method Index

 o connect(Connector)
Connect the connection with the given figure.
 o disconnect()
Disconnects the connection.
 o draw(Graphics)
Draws this handle.
 o findConnector(int, int, Figure)
 o invokeEnd(int, int, int, int, DrawingView)
Connects the figure to the new target.
 o invokeStart(int, int, DrawingView)
Disconnects the connection.
 o invokeStep(int, int, int, int, DrawingView)
Finds a new target of the connection.
 o setPoint(int, int)
Sets the location of the target point.
 o source()
Gets the side of the connection that is unaffected by the change.
 o target()
Returns the target connector of the change.

Variables

 o fOriginalTarget
 protected Connector fOriginalTarget
 o fTarget
 protected Figure fTarget
 o fConnection
 protected ConnectionFigure fConnection
 o fStart
 protected Point fStart

Constructors

 o ChangeConnectionHandle
 protected ChangeConnectionHandle(Figure owner)
Initializes the change connection handle.

Methods

 o target
 protected abstract Connector target()
Returns the target connector of the change.

 o disconnect
 protected abstract void disconnect()
Disconnects the connection.

 o connect
 protected abstract void connect(Connector c)
Connect the connection with the given figure.

 o setPoint
 protected abstract void setPoint(int x,
                                  int y)
Sets the location of the target point.

 o source
 protected Connector source()
Gets the side of the connection that is unaffected by the change.

 o invokeStart
 public void invokeStart(int x,
                         int y,
                         DrawingView view)
Disconnects the connection.

Overrides:
invokeStart in class AbstractHandle
 o invokeStep
 public void invokeStep(int x,
                        int y,
                        int anchorX,
                        int anchorY,
                        DrawingView view)
Finds a new target of the connection.

Overrides:
invokeStep in class AbstractHandle
 o invokeEnd
 public void invokeEnd(int x,
                       int y,
                       int anchorX,
                       int anchorY,
                       DrawingView view)
Connects the figure to the new target. If there is no new target the connection reverts to its original one.

Overrides:
invokeEnd in class AbstractHandle
 o findConnector
 protected Connector findConnector(int x,
                                   int y,
                                   Figure f)
 o draw
 public void draw(Graphics g)
Draws this handle.

Overrides:
draw in class AbstractHandle

All Packages  Class Hierarchy  This Package  Previous  Next  Index