|
||||||||||
| 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.ParamConnection
public class ParamConnection
Spline figure representing a data 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 | |
|---|---|
ParamConnection(DataLink dataLink,
CH.ifa.draw.framework.Connector startConnector,
CH.ifa.draw.framework.Connector endConnector,
ProcessDrawing drawing)
Constructor. |
|
ParamConnection(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 figure we are connected to. |
boolean |
canConnectFigures(CH.ifa.draw.framework.Figure startFigure,
CH.ifa.draw.framework.Figure endFigure,
int flags)
Delegates the check to the underlying control link. |
boolean |
connectsSame(CH.ifa.draw.framework.ConnectionFigure other)
Tests whether a connection connects the same figures as another connection figure. |
void |
decodeGeometry()
|
protected boolean |
decodeParameter(java.lang.String parameter,
java.lang.String errName)
|
void |
draw(java.awt.Graphics g)
|
protected java.lang.String |
encode()
|
void |
encodeGeometry()
|
void |
flipOrientation()
Flips (toggles) the locked orientation of the associated parameter figures. |
DataLink |
getDataLink()
Returns the data link associated with this parameter 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 startFigure,
CH.ifa.draw.framework.Figure endFigure)
Handles the connection of a connection. |
protected void |
handleDisconnect(CH.ifa.draw.framework.Figure startFigure,
CH.ifa.draw.framework.Figure endFigure)
Handles the disconnection of a connection. |
protected void |
initializeFigureAttributes()
Initializes the figure's drawing attributes. |
boolean |
isMinimized()
Checks if the connection is minimized. |
boolean |
isOrientationLocked()
Checks if the direction is locked. |
void |
layoutAndAdjustConnection()
Performs a layout of the connection, adjusting connection start/end point directions. |
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 startFigure,
CH.ifa.draw.framework.Figure endFigure)
Checks if connection should be reversed. |
void |
toggleOrientationLock()
Toggles the orientation lock. |
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 |
|---|
getDrawing, getParentElement, getPresentationFigure, handleEvent, 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, 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 ParamConnection(DataLink dataLink,
CH.ifa.draw.framework.Connector startConnector,
CH.ifa.draw.framework.Connector endConnector,
ProcessDrawing drawing)
dataLink - Link represented by this figurestartConnector - Start connector the connection should attach toendConnector - End connector the connection should attach todrawing - Process drawing that owns the figurepublic ParamConnection(ProcessDrawing drawing)
drawing - Process drawing that owns the figure| Method Detail |
|---|
protected void initializeFigureAttributes()
public DataLink getDataLink()
public java.lang.String toString()
toString in class java.lang.Objectpublic void draw(java.awt.Graphics g)
draw in interface CH.ifa.draw.framework.Figuredraw in class PolySplineFigure
public boolean canConnectFigures(CH.ifa.draw.framework.Figure startFigure,
CH.ifa.draw.framework.Figure endFigure,
int flags)
canConnectFigures in class PolySplineConnectionstartFigure - Proposed start figureendFigure - Proposed end figureflags - App-specific flags that may define constraints for the connection check
protected boolean shouldReverse(CH.ifa.draw.framework.Figure startFigure,
CH.ifa.draw.framework.Figure endFigure)
PolySplineConnection
shouldReverse in class PolySplineConnectionstartFigure - Proposed start figureendFigure - Proposed end figure
protected void handleConnect(CH.ifa.draw.framework.Figure startFigure,
CH.ifa.draw.framework.Figure endFigure)
PolySplineConnection
handleConnect in class PolySplineConnectionstartFigure - Figure to connnect toendFigure - Figure to connnect to
protected void handleDisconnect(CH.ifa.draw.framework.Figure startFigure,
CH.ifa.draw.framework.Figure endFigure)
PolySplineConnection
handleDisconnect in class PolySplineConnectionstartFigure - Figure to disconnect fromendFigure - Figure to disconnect frompublic 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
protected void addStartConnectorChangeListener()
PolySplineConnection
addStartConnectorChangeListener in class PolySplineConnectionprotected void removeStartConnectorChangeListener()
removeStartConnectorChangeListener in class PolySplineConnectionprotected void addEndConnectorChangeListener()
addEndConnectorChangeListener in class PolySplineConnectionprotected void removeEndConnectorChangeListener()
removeEndConnectorChangeListener in class PolySplineConnectionpublic boolean isMinimized()
isMinimized in class PolySplineConnectionpublic void release()
release in interface CH.ifa.draw.framework.Figurerelease in class PolySplineConnectionpublic boolean isOrientationLocked()
public void toggleOrientationLock()
public void flipOrientation()
public void layoutAndAdjustConnection()
PolySplineConnectionPolySplineConnection.layoutConnection() method.
layoutAndAdjustConnection in class PolySplineConnectionpublic void decodeGeometry()
public void encodeGeometry()
protected boolean decodeParameter(java.lang.String parameter,
java.lang.String errName)
decodeParameter in class PolySplineConnectionprotected java.lang.String encode()
encode in class PolySplineConnectionpublic ProcessObject getProcessElement()
ProcessElementContainer
getProcessElement in interface ProcessElementContainerpublic 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 ProcessElementContainerpublic CH.ifa.draw.framework.Figure selectionOnDelete()
selectionOnDelete in interface ProcessElementContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||