|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCH.ifa.draw.standard.AbstractHandle
org.openbp.cockpit.modeler.figures.spline.ChangeConnectionHandle
public abstract class ChangeConnectionHandle
ChangeConnectionHandle factors the common code for handles that can be used to reconnect connections.
ChangeConnectionEndHandle,
ChangeConnectionStartHandle| Nested Class Summary | |
|---|---|
class |
ChangeConnectionHandle.CanConnectDecorator
Decorator that decorates a figure if the source of the connection can connect to it with a transparent green overlay rectangle. |
| Field Summary | |
|---|---|
protected PolySplineConnection |
connectionFigure
Connection the handle belongs to |
| Fields inherited from class CH.ifa.draw.standard.AbstractHandle |
|---|
HANDLESIZE |
| Constructor Summary | |
|---|---|
protected |
ChangeConnectionHandle(CH.ifa.draw.framework.Figure owner)
Initializes the change connection handle. |
| Method Summary | |
|---|---|
boolean |
canLinkFigures(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure target)
Checks if two figures can be connected using a control link. |
protected abstract void |
connect(CH.ifa.draw.framework.Connector c)
Connect the spline with the given figure. |
protected abstract void |
disconnect()
Disconnects the connection. |
void |
draw(java.awt.Graphics g)
|
protected CH.ifa.draw.framework.Connector |
findConnector(int x,
int y,
CH.ifa.draw.framework.Figure figure)
Finds a connection target of the given figure at the given position. |
void |
invokeEnd(int x,
int y,
int anchorX,
int anchorY,
CH.ifa.draw.framework.DrawingView view)
Connects the figure to the new target. |
void |
invokeStart(int x,
int y,
CH.ifa.draw.framework.DrawingView view)
Disconnects the connection. |
void |
invokeStep(int x,
int y,
int anchorX,
int anchorY,
CH.ifa.draw.framework.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 CH.ifa.draw.framework.Connector |
source()
Gets the side of the connection that is unaffected by the change. |
protected abstract CH.ifa.draw.framework.Connector |
target()
Returns the target connector of the change. |
| Methods inherited from class CH.ifa.draw.standard.AbstractHandle |
|---|
containsPoint, displayBox, getUndoActivity, invokeEnd, invokeStart, invokeStep, locate, owner, setUndoActivity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PolySplineConnection connectionFigure
| Constructor Detail |
|---|
protected ChangeConnectionHandle(CH.ifa.draw.framework.Figure owner)
owner - Owner figure of the handle| Method Detail |
|---|
protected abstract void disconnect()
protected abstract void connect(CH.ifa.draw.framework.Connector c)
c - Connector of the figure to connect to
protected abstract void setPoint(int x,
int y)
x - Document coordinatey - Document coordinateprotected abstract CH.ifa.draw.framework.Connector target()
protected CH.ifa.draw.framework.Connector source()
public void invokeStart(int x,
int y,
CH.ifa.draw.framework.DrawingView view)
invokeStart in interface CH.ifa.draw.framework.HandleinvokeStart in class CH.ifa.draw.standard.AbstractHandlex - Document coordinatey - Document coordinateview - View to draw onAbstractHandle.invokeStart(int x, int y, DrawingView view)
public void invokeStep(int x,
int y,
int anchorX,
int anchorY,
CH.ifa.draw.framework.DrawingView view)
invokeStep in interface CH.ifa.draw.framework.HandleinvokeStep in class CH.ifa.draw.standard.AbstractHandlex - Document coordinatey - Document coordinateanchorX - Document coordinate of the anchor point of the handleanchorY - Document coordinate of the anchor point of the handleview - View to draw onAbstractHandle.invokeStep(int x, int y, int anchorX, int anchorY, DrawingView view)
public void invokeEnd(int x,
int y,
int anchorX,
int anchorY,
CH.ifa.draw.framework.DrawingView view)
invokeEnd in interface CH.ifa.draw.framework.HandleinvokeEnd in class CH.ifa.draw.standard.AbstractHandlex - Document coordinatey - Document coordinateanchorX - Document coordinate of the anchor point of the handleanchorY - Document coordinate of the anchor point of the handleview - View to draw onAbstractHandle.invokeEnd(int x, int y, int anchorX, int anchorY, DrawingView view)
protected CH.ifa.draw.framework.Connector findConnector(int x,
int y,
CH.ifa.draw.framework.Figure figure)
x - Document coordinatey - Document coordinatefigure - Figure to search
public void draw(java.awt.Graphics g)
draw in interface CH.ifa.draw.framework.Handledraw in class CH.ifa.draw.standard.AbstractHandleAbstractHandle.draw(Graphics g)
public boolean canLinkFigures(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure target)
start - Start figuretarget - Target figure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||