|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCH.ifa.draw.standard.AbstractHandle
CH.ifa.draw.standard.ChangeConnectionHandle
public abstract class ChangeConnectionHandle
ChangeConnectionHandle factors the common code for handles that can be used to reconnect connections.
ChangeConnectionEndHandle,
ChangeConnectionStartHandle| Field Summary | |
|---|---|
protected ConnectionFigure |
fConnection
|
protected Connector |
fOriginalTarget
|
protected java.awt.Point |
fStart
|
protected Figure |
fTarget
|
| Fields inherited from class CH.ifa.draw.standard.AbstractHandle |
|---|
HANDLESIZE |
| Constructor Summary | |
|---|---|
protected |
ChangeConnectionHandle(Figure owner)
Initializes the change connection handle. |
| Method Summary | |
|---|---|
protected abstract void |
connect(Connector c)
Connect the connection with the given figure. |
protected abstract void |
disconnect()
Disconnects the connection. |
void |
draw(java.awt.Graphics g)
Draws this handle. |
protected Connector |
findConnector(int x,
int y,
Figure f)
|
void |
invokeEnd(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
Connects the figure to the new target. |
void |
invokeStart(int x,
int y,
DrawingView view)
Disconnects the connection. |
void |
invokeStep(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
Finds a new target of the connection. |
protected abstract void |
setPoint(int x,
int y)
Sets the location of the target point. |
protected Connector |
source()
Gets the side of the connection that is unaffected by the change. |
protected abstract Connector |
target()
Returns the target connector of the change. |
| Methods inherited from class CH.ifa.draw.standard.AbstractHandle |
|---|
containsPoint, displayBox, invokeEnd, invokeStart, invokeStep, locate, owner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Connector fOriginalTarget
protected Figure fTarget
protected ConnectionFigure fConnection
protected java.awt.Point fStart
| Constructor Detail |
|---|
protected ChangeConnectionHandle(Figure owner)
| Method Detail |
|---|
protected abstract Connector target()
protected abstract void disconnect()
protected abstract void connect(Connector c)
protected abstract void setPoint(int x,
int y)
protected Connector source()
public void invokeStart(int x,
int y,
DrawingView view)
invokeStart in interface HandleinvokeStart in class AbstractHandlex - the x position where the interaction startedy - the y position where the interaction startedview - the handles container
public void invokeStep(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
invokeStep in interface HandleinvokeStep in class AbstractHandlex - the current x positiony - the current y positionanchorX - the x position where the interaction startedanchorY - the y position where the interaction started
public void invokeEnd(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
invokeEnd in interface HandleinvokeEnd in class AbstractHandlex - the current x positiony - the current y positionanchorX - the x position where the interaction startedanchorY - the y position where the interaction started
protected Connector findConnector(int x,
int y,
Figure f)
public void draw(java.awt.Graphics g)
draw in interface Handledraw in class AbstractHandle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||