public final class GraphBinding
extends java.lang.Object
NB: ValueNodes can be referenced by multiple GraphBindings (e.g. a view property).
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activates a binding, adding the sub-graph defined by this binding to the main
DataFlowGraph associated with this binding. |
void |
addBinding(ValueNode fromNode,
ValueNode toNode) |
void |
addBinding(ValueNode fromNode,
ValueNode toNode,
java.lang.String name)
Adds a connection between two nodes to this graph.
|
static GraphBinding |
create()
Creates a
GraphBinding associated with the default DataFlowGraph instance. |
static GraphBinding |
create(DataFlowGraph dataFlowGraph) |
void |
deactivate()
Deactivates this binding which, as you might guess, is the reverse of activating it: the
sub-graph associated with this binding is removed from the main
DataFlowGraph . |
boolean |
isActive() |
void |
setListener(BindingListener listener)
Sets the
BindingListener . |
public static GraphBinding create()
GraphBinding
associated with the default DataFlowGraph
instance.public static GraphBinding create(DataFlowGraph dataFlowGraph)
public void addBinding(ValueNode fromNode, ValueNode toNode, java.lang.String name)
activate()
is called, and will be removed once deactivate()
is called.public void activate()
DataFlowGraph
associated with this binding. This is expected to be called from framework code
and should not be called by the end developer.public void deactivate()
DataFlowGraph
. As with
activate()
, this is expected to only be called by framework code and not the end
developer.public boolean isActive()
public void setListener(BindingListener listener)
BindingListener
.