|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.modeler.AutoConnector
public class AutoConnector
The autoconnector tries to auto-connect an inserted node or socket to the current node/socket using control and data links.
| Field Summary | |
|---|---|
static int |
DLA_CASTABLE_TYPES
Data link autoconnector operation mode: Connect castable types |
static int |
DLA_COMPATIBLE_TYPES
Data link autoconnector operation mode: Connect compatible types |
static int |
DLA_CONVERTIBLE_TYPES
Data link autoconnector operation mode: Connect convertible types |
static int |
DLA_IDENTICAL_NAMES
Data link autoconnector operation mode: Connect identical names |
static int |
DLA_IDENTICAL_TYPES
Data link autoconnector operation mode: Connect identical types |
static int |
DLA_OFF
Data link autoconnector operation mode: Off |
| Constructor Summary | |
|---|---|
AutoConnector(Modeler modeler,
CH.ifa.draw.framework.Figure newFigure)
Constructor for auto-connecting a newly added figure to the currently selected figure. |
|
AutoConnector(Modeler modeler,
SocketFigure sourceSocketFigure,
SocketFigure targetSocketFigure)
Constructor for auto-connecting two given sockets. |
|
| Method Summary | |
|---|---|
void |
adjustNodeGeometry()
Adjusts the geometry of the newly inserted node, if any. |
void |
autoConnectAll()
Tries to auto-connect control as well as data links if the autoconnect options allow for this. |
boolean |
autoConnectControlLink()
Tries to auto-connect an inserted node or socket to the current node/socket. |
boolean |
autoConnectDataLinks()
Tries to auto-connect an inserted node or socket to the current node/socket. |
static java.lang.String |
checkAutoConversion(Param sourceParam,
java.lang.String sourceMemberPath,
Param targetParam,
java.lang.String targetMemberPath)
Checks if an auto conversion should be applied in order to link the given parameters. |
static void |
determineDataLinkAutoConnectorMode()
Called if the data link auto connector mode option has changed. |
static int |
getDataLinkAutoConnectorMode()
Gets the data link auto connector mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DLA_OFF
public static final int DLA_IDENTICAL_NAMES
public static final int DLA_IDENTICAL_TYPES
public static final int DLA_COMPATIBLE_TYPES
public static final int DLA_CASTABLE_TYPES
public static final int DLA_CONVERTIBLE_TYPES
| Constructor Detail |
|---|
public AutoConnector(Modeler modeler,
CH.ifa.draw.framework.Figure newFigure)
modeler - Modeler in chargenewFigure - The newly added NodeFigure or SocketFigure
public AutoConnector(Modeler modeler,
SocketFigure sourceSocketFigure,
SocketFigure targetSocketFigure)
modeler - Modeler in chargesourceSocketFigure - Source socket figuretargetSocketFigure - Target socket figure| Method Detail |
|---|
public static int getDataLinkAutoConnectorMode()
public static void determineDataLinkAutoConnectorMode()
public static java.lang.String checkAutoConversion(Param sourceParam,
java.lang.String sourceMemberPath,
Param targetParam,
java.lang.String targetMemberPath)
sourceParam - Source node parameter (may not be null)sourceMemberPath - Source data member access path (may be null)targetParam - Target node parameter (may not be null)targetMemberPath - Target data member access path (may be null)
public void autoConnectAll()
public boolean autoConnectControlLink()
public boolean autoConnectDataLinks()
public void adjustNodeGeometry()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||