public class Node extends Object implements org.eclipse.gef.common.attributes.IAttributeStore
| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyMapProperty<String,Object> |
attributes |
| Modifier and Type | Class and Description |
|---|---|
static class |
Node.Builder
The
Node.Builder can be used to construct a Node little by
little. |
| Constructor and Description |
|---|
Node()
Constructs a new
Node. |
Node(Map<String,Object> attributes)
Constructs a new
Node and copies the given
attributesProperty into the attributesProperty map of this Node. |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ReadOnlyMapProperty<String,Object> |
attributesProperty() |
Set<Edge> |
getAllIncomingEdges()
|
Set<Node> |
getAllNeighbors()
Returns all neighbors of this
Node. |
Set<Edge> |
getAllOutgoingEdges()
|
Set<Node> |
getAllPredecessorNodes()
|
Set<Node> |
getAllSuccessorNodes()
|
javafx.collections.ObservableMap<String,Object> |
getAttributes()
Gets the value of the property attributes.
|
Graph |
getGraph()
|
Set<Edge> |
getIncomingEdges()
|
Set<Node> |
getNeighbors()
Returns all (local) neighbors of this
Node, i.e. the union of the
getPredecessorNodes() and getSuccessorNodes() . |
Graph |
getNestedGraph()
|
Set<Edge> |
getOutgoingEdges()
|
Set<Node> |
getPredecessorNodes()
|
Set<Node> |
getSuccessorNodes()
|
void |
setNestedGraph(Graph nestedGraph)
|
String |
toString() |
public javafx.beans.property.ReadOnlyMapProperty<String,Object> attributesProperty
attributesProperty in interface org.eclipse.gef.common.attributes.IAttributeStoregetAttributes()public Node()
Node.public Node(Map<String,Object> attributes)
Node and copies the given
attributesProperty into the attributesProperty map of this Node.attributes - A Map containing the attributesProperty which are
copied into the attributesProperty map of this Node.public javafx.beans.property.ReadOnlyMapProperty<String,Object> attributesProperty()
attributesProperty in interface org.eclipse.gef.common.attributes.IAttributeStoregetAttributes()public Set<Edge> getAllIncomingEdges()
Edges of this Node. The full graph
hierarchy is scanned for incoming edges, and not just the
associated graph.Edges.public Set<Node> getAllNeighbors()
Node. The full graph hierarchy is
scanned for neighbors, and not just the associated
graph.public Set<Edge> getAllOutgoingEdges()
Edges of this Node. The full graph
hierarchy is scanned for outgoing edges, and not just the
associated graph.Edges.public Set<Node> getAllPredecessorNodes()
Nodes of this Node. The full
graph hierarchy is scanned for predecessor nodes, and not just the
associated graph.Nodes.public Set<Node> getAllSuccessorNodes()
Nodes of this Node. The full graph
hierarchy is scanned for successor nodes, and not just the
associated graph.Nodes.public javafx.collections.ObservableMap<String,Object> getAttributes()
getAttributes in interface org.eclipse.gef.common.attributes.IAttributeStorepublic Set<Edge> getIncomingEdges()
Edges of this Node. Only the
associated graph is scanned for incoming edges, and
not the whole graph hierarchy.Edges.public Set<Node> getNeighbors()
Node, i.e. the union of the
getPredecessorNodes() and getSuccessorNodes() .Node.public Graph getNestedGraph()
public Set<Edge> getOutgoingEdges()
Edges of this Node. Only the
associated graph is scanned for outgoing edges, and
not the whole graph hierarchy.Edges.public Set<Node> getPredecessorNodes()
Nodes of this Node. Only
the associated graph is scanned for predecessor
nodes, and not the whole graph hierarchy.Nodes.public Set<Node> getSuccessorNodes()
Nodes of this Node. Only the
associated graph is scanned for successor nodes, and
not the whole graph hierarchy.Nodes.public void setNestedGraph(Graph nestedGraph)
Copyright (c) 2014 itemis AG and others. All rights reserved.