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
-
fConnection
-
-
fOriginalTarget
-
-
fStart
-
-
fTarget
-
-
ChangeConnectionHandle(Figure)
- Initializes the change connection handle.
-
connect(Connector)
- Connect the connection with the given figure.
-
disconnect()
- Disconnects the connection.
-
draw(Graphics)
- Draws this handle.
-
findConnector(int, int, Figure)
-
-
invokeEnd(int, int, int, int, DrawingView)
- Connects the figure to the new target.
-
invokeStart(int, int, DrawingView)
- Disconnects the connection.
-
invokeStep(int, int, int, int, DrawingView)
- Finds a new target of the connection.
-
setPoint(int, int)
- Sets the location of the target point.
-
source()
- Gets the side of the connection that is unaffected by
the change.
-
target()
- Returns the target connector of the change.
fOriginalTarget
protected Connector fOriginalTarget
fTarget
protected Figure fTarget
fConnection
protected ConnectionFigure fConnection
fStart
protected Point fStart
ChangeConnectionHandle
protected ChangeConnectionHandle(Figure owner)
- Initializes the change connection handle.
target
protected abstract Connector target()
- Returns the target connector of the change.
disconnect
protected abstract void disconnect()
- Disconnects the connection.
connect
protected abstract void connect(Connector c)
- Connect the connection with the given figure.
setPoint
protected abstract void setPoint(int x,
int y)
- Sets the location of the target point.
source
protected Connector source()
- Gets the side of the connection that is unaffected by
the change.
invokeStart
public void invokeStart(int x,
int y,
DrawingView view)
- Disconnects the connection.
- Overrides:
- invokeStart in class AbstractHandle
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
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
findConnector
protected Connector findConnector(int x,
int y,
Figure f)
draw
public void draw(Graphics g)
- Draws this handle.
- Overrides:
- draw in class AbstractHandle
All Packages Class Hierarchy This Package Previous Next Index