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.IAttributeStore
getAttributes()
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.IAttributeStore
getAttributes()
public Set<Edge> getAllIncomingEdges()
Edge
s of this Node
. The full graph
hierarchy is scanned for incoming edges, and not just the
associated graph
.Edge
s.public Set<Node> getAllNeighbors()
Node
. The full graph hierarchy is
scanned for neighbors, and not just the associated
graph
.public Set<Edge> getAllOutgoingEdges()
Edge
s of this Node
. The full graph
hierarchy is scanned for outgoing edges, and not just the
associated graph
.Edge
s.public Set<Node> getAllPredecessorNodes()
Node
s of this Node
. The full
graph hierarchy is scanned for predecessor nodes, and not just the
associated graph
.Node
s.public Set<Node> getAllSuccessorNodes()
Node
s of this Node
. The full graph
hierarchy is scanned for successor nodes, and not just the
associated graph
.Node
s.public javafx.collections.ObservableMap<String,Object> getAttributes()
getAttributes
in interface org.eclipse.gef.common.attributes.IAttributeStore
public Set<Edge> getIncomingEdges()
Edge
s of this Node
. Only the
associated graph
is scanned for incoming edges, and
not the whole graph hierarchy.Edge
s.public Set<Node> getNeighbors()
Node
, i.e. the union of the
getPredecessorNodes()
and getSuccessorNodes()
.Node
.public Graph getNestedGraph()
public Set<Edge> getOutgoingEdges()
Edge
s of this Node
. Only the
associated graph
is scanned for outgoing edges, and
not the whole graph hierarchy.Edge
s.public Set<Node> getPredecessorNodes()
Node
s of this Node
. Only
the associated graph
is scanned for predecessor
nodes, and not the whole graph hierarchy.Node
s.public Set<Node> getSuccessorNodes()
Node
s of this Node
. Only the
associated graph
is scanned for successor nodes, and
not the whole graph hierarchy.Node
s.public void setNestedGraph(Graph nestedGraph)
Copyright (c) 2014 itemis AG and others. All rights reserved.