public interface Connector extends Model
| Type | Property and Description |
|---|---|
ObjectProperty<Integer> |
maxNumberOfConnections
Returns the property of the maximum allowed number of connections.
|
ObjectProperty<ValueObject> |
valueObject
Returns the value object property (can be used to get notified if the value object changes).
|
visualizationRequest| Modifier and Type | Method and Description |
|---|---|
void |
addClickEventListener(EventHandler<ClickEvent> handler)
Adds the specified click-event listener to this connector.
|
void |
addConnectionEventListener(EventHandler<ConnectionEvent> handler)
Adds the specified connection-event listener to this connector.
|
void |
click(MouseButton btn,
Object event)
Perform a mouse click on this connector.
|
String |
getId()
Returns the global id of this connector.
|
String |
getLocalId()
Returns the local id of this connector.
|
int |
getMaxNumberOfConnections()
Returns the maximum allowed number of connections.
|
VNode |
getNode()
Returns the parent node of this connector.
|
String |
getType()
Returns the conneciton type of this connector.
|
ValueObject |
getValueObject()
Returns the value object of this connector.
|
boolean |
isInput()
Determines whether this connector is an input connector.
|
boolean |
isOutput()
Determines whether this connector is an output connector.
|
ObjectProperty<Integer> |
maxNumberOfConnectionsProperty()
Returns the property of the maximum allowed number of connections.
|
void |
removeClickEventListener(EventHandler<ClickEvent> handler)
Removes the specified click-event listener from this connector.
|
void |
removeConnectionEventListener(EventHandler<ConnectionEvent> handler)
Removes the specified connection-event listener from this connector.
|
void |
setLocalId(String id)
Defines the local id of this connector.
|
void |
setMaxNumberOfConnections(int numConnections)
Defines the maximum allowed number of connections.
|
void |
setValueObject(ValueObject obj)
Defines the value object of this connector.
|
ObjectProperty<ValueObject> |
valueObjectProperty()
Returns the value object property (can be used to get notified if the value object changes).
|
getVisualizationRequest, isVisualizationRequestInitialized, setVisualizationRequest, visualizationRequestPropertyObjectProperty<ValueObject> valueObjectProperty
getValueObject(),
setValueObject(ValueObject)ObjectProperty<Integer> maxNumberOfConnectionsProperty
String getType()
"control" or
"data")boolean isInput()
true if this connector is an input connector;
false otherwiseboolean isOutput()
true if this connector is an output connector;
false otherwiseString getId()
String getLocalId()
void setLocalId(String id)
id - the id to setVNode getNode()
void setValueObject(ValueObject obj)
obj - value object to setValueObject getValueObject()
null if no value object has been
definedObjectProperty<ValueObject> valueObjectProperty()
getValueObject(),
setValueObject(ValueObject)void addConnectionEventListener(EventHandler<ConnectionEvent> handler)
handler - the listener to addvoid removeConnectionEventListener(EventHandler<ConnectionEvent> handler)
handler - the listener to removevoid addClickEventListener(EventHandler<ClickEvent> handler)
handler - the listener to addvoid removeClickEventListener(EventHandler<ClickEvent> handler)
handler - the listener to removevoid click(MouseButton btn, Object event)
btn - the click buttonevent - the event (e.g. javafx mouse-event)void setMaxNumberOfConnections(int numConnections)
numConnections - maximum allowed number of connections ([0,MAX_INT])int getMaxNumberOfConnections()
[0,MAX_INT])ObjectProperty<Integer> maxNumberOfConnectionsProperty()