public interface VFlowModel extends VNode
visibleheight, id, selectable, title, valueObject, width, x, yvisualizationRequestselected| Modifier and Type | Method and Description |
|---|---|
void |
addConnections(Connections connections,
String flowType)
Adds the specified connections to this flow.
|
ThruConnector |
addThruInput(String type) |
ThruConnector |
addThruOutput(String type) |
void |
clear()
Clears this flow, i.e., removes all nodes and connections.
|
ConnectionResult |
connect(Connector s,
Connector r)
Requests the specified connection.
|
ConnectionResult |
connect(VNode s,
VNode r,
String flowType)
Requests the specified connection.
|
ObservableMap<String,Connections> |
getAllConnections()
Returns all connections of this flow.
|
Connections |
getConnections(String flowType)
Returns the all connections of the specified flow/connection type
|
Class<? extends VNode> |
getFlowNodeClass()
Returns the flow node implementation class used by this flow.
|
IdGenerator |
getIdGenerator()
Returns the id generator used by this flow.
|
NodeLookup |
getNodeLookup()
Returns the node lookup that is used by this flow.
|
ObservableList<VNode> |
getNodes()
Returns the nodes of this flow.
|
VNode |
getReceiver(Connection c)
Returns the receiver of the specified connection.
|
VNode |
getSender(Connection c)
Returns the sender of the specified connection.
|
ObservableList<ThruConnector> |
getThruInputs() |
ObservableList<ThruConnector> |
getThruOutputs() |
VFlowModel |
newFlowNode() |
VFlowModel |
newFlowNode(ValueObject obj) |
VNode |
newNode() |
VNode |
newNode(ValueObject obj) |
VNode |
remove(VNode n)
Removes the specified node from this flow.
|
void |
setFlowNodeClass(Class<? extends VNode> cls)
Defines the flow node implementation class used by this flow model.
|
void |
setIdGenerator(IdGenerator generator)
Defines the id generator that shall be used by this flow.
|
void |
setNodeLookup(NodeLookup nodeLookup)
Defines the node lookup that shall be used by this flow.
|
ConnectionResult |
tryConnect(Connector s,
Connector r)
Attempts to create the specified connection.
|
ConnectionResult |
tryConnect(VNode s,
VNode r,
String flowType)
Attempts to create the specified connection.
|
isVisible, setVisible, visiblePropertyaddConnector, addInput, addOutput, getConnector, getConnectors, getDepth, getFlow, getHeight, getId, getInputs, getMainInput, getMainInputTypes, getMainOutput, getMainOutputTypes, getOutputs, getRoot, getTitle, getValueObject, getWidth, getX, getY, heightProperty, idProperty, isSelectable, removeConnector, selectableProperty, setHeight, setId, setMainInput, setMainOutput, setTitle, setValueObject, setWidth, setX, setY, titleProperty, valueObjectProperty, widthProperty, xProperty, yPropertygetVisualizationRequest, isVisualizationRequestInitialized, setVisualizationRequest, visualizationRequestPropertyisSelected, requestSelection, selectedPropertyVFlowModel newFlowNode(ValueObject obj)
VFlowModel newFlowNode()
VNode newNode(ValueObject obj)
VNode newNode()
ThruConnector addThruInput(String type)
ThruConnector addThruOutput(String type)
ObservableList<ThruConnector> getThruInputs()
ObservableList<ThruConnector> getThruOutputs()
ConnectionResult tryConnect(VNode s, VNode r, String flowType)
s - sender node (uses main output connector of this node if
specified)r - receiver node (uses main input connector of this node if
specified)flowType - connection typeConnectionResult connect(VNode s, VNode r, String flowType)
s - sender noder - receiver nodeflowType - connection typeConnectionResult tryConnect(Connector s, Connector r)
s - sender connectorr - receiver connectorConnectionResult connect(Connector s, Connector r)
s - sender noder - receiver nodeVNode remove(VNode n)
n - the node to removenull if no node has been removedvoid clear()
ObservableList<VNode> getNodes()
VNode getSender(Connection c)
c - connectionnull if
the node does not existVNode getReceiver(Connection c)
c - connectionnull if
the node does not existvoid addConnections(Connections connections, String flowType)
connections - connections to addflowType - connection typeConnections getConnections(String flowType)
flowType - connection typeObservableMap<String,Connections> getAllConnections()
void setFlowNodeClass(Class<? extends VNode> cls)
cls - flow node implementation classClass<? extends VNode> getFlowNodeClass()
void setIdGenerator(IdGenerator generator)
generator - id generatorIdGenerator getIdGenerator()
void setNodeLookup(NodeLookup nodeLookup)
nodeLookup - node lookupNodeLookup getNodeLookup()