|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCH.ifa.draw.standard.AbstractFigure
org.openbp.cockpit.modeler.figures.spline.PolySplineFigure
org.openbp.cockpit.modeler.figures.spline.PolySplineConnection
org.openbp.cockpit.modeler.figures.process.FlowConnection
public class FlowConnection
Spline figure representing a control link.
| Field Summary |
|---|
| Fields inherited from class org.openbp.cockpit.modeler.figures.spline.PolySplineConnection |
|---|
DECO_ANIMATION, label, NAN |
| Fields inherited from class org.openbp.cockpit.modeler.figures.spline.PolySplineFigure |
|---|
drawDecorations, LEFT_CONTROLPOINT, RIGHT_CONTROLPOINT, segments |
| Fields inherited from interface org.openbp.cockpit.modeler.figures.VisualElement |
|---|
VISUAL_DISPLAY_ALL, VISUAL_DND_PARTICIPANT, VISUAL_VISIBLE |
| Fields inherited from interface CH.ifa.draw.framework.Figure |
|---|
POPUP_MENU |
| Constructor Summary | |
|---|---|
FlowConnection(ControlLink controlLink,
ProcessDrawing drawing)
Constructor. |
|
FlowConnection(ProcessDrawing drawing)
Constructor for a virgin figure. |
|
| Method Summary | |
|---|---|
protected void |
addEndConnectorChangeListener()
Adds ourself as figure change listener to the end socket we are connected to. |
protected void |
addStartConnectorChangeListener()
Adds ourself as figure change listener to the start socket we are connected to. |
boolean |
canConnectFigures(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure end,
int flags)
Delegates the check to the underlying control link. |
void |
connectEnd(CH.ifa.draw.framework.Connector newEndConnector)
If the given connector belongs to a param figure, we search for the corresponding socket figure. |
boolean |
connectsSame(CH.ifa.draw.framework.ConnectionFigure other)
Tests whether a connection connects the same figures as another connection figure. |
void |
connectStart(CH.ifa.draw.framework.Connector newStartConnector)
If the given connector belongs to a param figure, we search for the corresponding socket figure. |
void |
decodeGeometry()
|
protected boolean |
decodeParameter(java.lang.String parameter,
java.lang.String errName)
|
java.awt.Rectangle |
displayBox()
The display box equals the bounds of the spline enlarged by 30 pixels vertically and horizontally. |
void |
draw(java.awt.Graphics g)
|
void |
encodeGeometry()
|
ProcessElementContainer |
findProcessElementContainer(int x,
int y)
Gets the direct child element at the given coordinates. |
ProcessElementContainer |
findProcessElementContainerInside(int x,
int y)
Gets the innermost child at the given coordinates. |
ControlLink |
getControlLink()
Returns the control link associated with this flow connection. |
ProcessObject |
getProcessElement()
Returns the contained process element. |
ProcessObject |
getReferredProcessElement()
Returns the process element this figure refers to. |
protected void |
handleConnect(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure end)
Handles the connection of a connection. |
protected void |
handleDisconnect(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure end)
Handles the disconnection of a connection. |
boolean |
handleEvent(VisualElementEvent event)
Handler method that is called for handling events. |
protected void |
initializeFigureAttributes()
Initializes the figure's drawing attributes. |
boolean |
isMinimized()
Checks if the connection is minimized. |
void |
release()
|
protected void |
removeEndConnectorChangeListener()
Removes ourself as figure change listener from the end socket we are connected to. |
protected void |
removeStartConnectorChangeListener()
Removes ourself as figure change listener from the start socket we are connected to. |
CH.ifa.draw.framework.Figure |
selectionOnDelete()
Start socket should be selected on deletion. |
protected boolean |
shouldReverse(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure end)
Checks if connection should be reversed. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class org.openbp.cockpit.modeler.figures.spline.PolySplineFigure |
|---|
adjustOpposite, basicDisplayBox, basicSetCtrlPoint, canConnect, clearShapeCache, connectorAt, findSegment, getAnimationDecoration, getAttribute, getCtrlPointAt, getEndDecoration, getFrameColor, getPointAt, getPointOnCurve, getSplineBounds, getStartDecoration, getStroke, isEmpty, joinSegments, pointAt, pointCount, rebuildShapeCache, removePoint, segmentAt, setAnimationDecoration, setAttribute, setCtrlPointAt, setDrawDecorations, setEndDecoration, setFrameColor, setPointAt, setStartDecoration, setStroke, splitSegment |
| Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
|---|
addFigureChangeListener, addToContainer, center, changed, clone, connectionInsets, connectorVisibility, decompose, displayBox, displayBox, figures, findFigureInside, getZValue, includes, invalidate, listener, moveBy, removeFigureChangeListener, removeFromContainer, setZValue, size, willChange |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openbp.cockpit.modeler.figures.VisualElement |
|---|
findVisualElement, findVisualElementInside, getDrawing, getParentElement, getPresentationFigure, isVisible, setDrawing, setVisible, updatePresentationFigure |
| Methods inherited from interface CH.ifa.draw.framework.Figure |
|---|
addFigureChangeListener, addToContainer, basicDisplayBox, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, getAttribute, getZValue, handles, includes, invalidate, isEmpty, listener, moveBy, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange |
| Methods inherited from interface CH.ifa.draw.util.Storable |
|---|
read, write |
| Methods inherited from interface org.openbp.jaspira.gui.interaction.InteractionClient |
|---|
dragActionTriggered, dragEnded, dragStarted, getAllDropRegions, getAllImportersAt, getDropRegions, getImportersAt, getSubClients, importData |
| Methods inherited from interface org.openbp.cockpit.modeler.figures.generic.UpdatableFigure |
|---|
updateFigure |
| Methods inherited from interface CH.ifa.draw.framework.ConnectionFigure |
|---|
joinSegments, pointAt, pointCount, splitSegment |
| Constructor Detail |
|---|
public FlowConnection(ControlLink controlLink,
ProcessDrawing drawing)
controlLink - Control represented by this figuredrawing - Process drawing that owns the figurepublic FlowConnection(ProcessDrawing drawing)
drawing - Process drawing that owns the figure| Method Detail |
|---|
protected void initializeFigureAttributes()
protected boolean decodeParameter(java.lang.String parameter,
java.lang.String errName)
decodeParameter in class PolySplineConnectionpublic ControlLink getControlLink()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.awt.Rectangle displayBox()
PolySplineFigure
displayBox in interface CH.ifa.draw.framework.FiguredisplayBox in class PolySplineConnectionFigure.displayBox()public void draw(java.awt.Graphics g)
draw in interface CH.ifa.draw.framework.Figuredraw in class PolySplineFigureAbstractFigure.draw(Graphics g)
public boolean canConnectFigures(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure end,
int flags)
canConnectFigures in class PolySplineConnectionstart - Proposed start figureend - Proposed end figureflags - App-specific flags that may define constraints for the connection checkPolySplineConnection.canConnectFigures(Figure start, Figure end, int flags)
protected boolean shouldReverse(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure end)
PolySplineConnection
shouldReverse in class PolySplineConnectionstart - Proposed start figureend - Proposed end figure
PolySplineConnection.shouldReverse(Figure start, Figure end)
protected void handleConnect(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure end)
PolySplineConnection
handleConnect in class PolySplineConnectionstart - Figure to connnect toend - Figure to connnect toPolySplineConnection.handleConnect(Figure start, Figure end)
protected void handleDisconnect(CH.ifa.draw.framework.Figure start,
CH.ifa.draw.framework.Figure end)
PolySplineConnection
handleDisconnect in class PolySplineConnectionstart - Figure to disconnect fromend - Figure to disconnect fromPolySplineConnection.handleDisconnect(Figure start, Figure end)public void connectStart(CH.ifa.draw.framework.Connector newStartConnector)
connectStart in interface CH.ifa.draw.framework.ConnectionFigureconnectStart in class PolySplineConnectionPolySplineConnection.connectStart(Connector newStartConnector)public void connectEnd(CH.ifa.draw.framework.Connector newEndConnector)
connectEnd in interface CH.ifa.draw.framework.ConnectionFigureconnectEnd in class PolySplineConnectionPolySplineConnection.connectEnd(Connector newEndConnector)public boolean connectsSame(CH.ifa.draw.framework.ConnectionFigure other)
PolySplineConnection
connectsSame in interface CH.ifa.draw.framework.ConnectionFigureconnectsSame in class PolySplineConnectionother - Connection to check on equality with this figure
PolySplineConnection.connectsSame(ConnectionFigure other)protected void addStartConnectorChangeListener()
addStartConnectorChangeListener in class PolySplineConnectionPolySplineConnection.addStartConnectorChangeListener()protected void removeStartConnectorChangeListener()
removeStartConnectorChangeListener in class PolySplineConnectionPolySplineConnection.removeStartConnectorChangeListener()protected void addEndConnectorChangeListener()
addEndConnectorChangeListener in class PolySplineConnectionPolySplineConnection.addEndConnectorChangeListener()protected void removeEndConnectorChangeListener()
removeEndConnectorChangeListener in class PolySplineConnectionPolySplineConnection.removeEndConnectorChangeListener()public boolean isMinimized()
isMinimized in class PolySplineConnectionpublic void release()
release in interface CH.ifa.draw.framework.Figurerelease in class PolySplineConnectionFigure.release()public void decodeGeometry()
public void encodeGeometry()
public boolean handleEvent(VisualElementEvent event)
VisualElement
handleEvent in interface VisualElementhandleEvent in class PolySplineConnectionevent - Event that desribes the event
VisualElement.handleEvent(VisualElementEvent event)public ProcessObject getProcessElement()
ProcessElementContainer
getProcessElement in interface ProcessElementContainerProcessElementContainer.getProcessElement()public ProcessObject getReferredProcessElement()
ProcessElementContainerProcessElementContainer.getProcessElement(), however this
might be different also for example for sockets of initial/final nodes sockets, which will return
their parent node.
getReferredProcessElement in interface ProcessElementContainerProcessElementContainer.getReferredProcessElement()public CH.ifa.draw.framework.Figure selectionOnDelete()
selectionOnDelete in interface ProcessElementContainerProcessElementContainer.selectionOnDelete()
public ProcessElementContainer findProcessElementContainer(int x,
int y)
ProcessElementContainer
findProcessElementContainer in interface ProcessElementContainerx - Document coordinatey - Document coordinate
ProcessElementContainer.findProcessElementContainer(int, int)
public ProcessElementContainer findProcessElementContainerInside(int x,
int y)
ProcessElementContainer
findProcessElementContainerInside in interface ProcessElementContainerx - Document coordinatey - Document coordinate
ProcessElementContainer.findProcessElementContainerInside(int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||