public class Node
extends java.lang.Object
implements org.eclipse.gef4.common.attributes.IAttributeStore
Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyMapProperty<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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<java.lang.String,java.lang.Object> |
attributesProperty() |
java.util.Set<Edge> |
getAllIncomingEdges()
|
java.util.Set<Node> |
getAllNeighbors()
Returns all neighbors of this
Node . |
java.util.Set<Edge> |
getAllOutgoingEdges()
|
java.util.Set<Node> |
getAllPredecessorNodes()
|
java.util.Set<Node> |
getAllSuccessorNodes()
|
javafx.collections.ObservableMap<java.lang.String,java.lang.Object> |
getAttributes()
Gets the value of the property attributes.
|
Graph |
getGraph()
|
java.util.Set<Edge> |
getLocalIncomingEdges()
|
java.util.Set<Node> |
getLocalNeighbors()
Returns all (local) neighbors of this
Node , i.e. the union of the
getLocalPredecessorNodes() and getLocalSuccessorNodes()
. |
java.util.Set<Edge> |
getLocalOutgoingEdges()
|
java.util.Set<Node> |
getLocalPredecessorNodes()
|
java.util.Set<Node> |
getLocalSuccessorNodes()
|
Graph |
getNestedGraph()
|
void |
setGraph(Graph graph)
|
void |
setNestedGraph(Graph nestedGraph)
|
java.lang.String |
toString() |
public javafx.beans.property.ReadOnlyMapProperty<java.lang.String,java.lang.Object> attributesProperty
attributesProperty
in interface org.eclipse.gef4.common.attributes.IAttributeStore
getAttributes()
public Node()
Node
.public Node(java.util.Map<java.lang.String,java.lang.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<java.lang.String,java.lang.Object> attributesProperty()
attributesProperty
in interface org.eclipse.gef4.common.attributes.IAttributeStore
getAttributes()
public java.util.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 java.util.Set<Node> getAllNeighbors()
Node
. The full graph hierarchy is
scanned for neighbors, and not just the associated
graph
.public java.util.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 java.util.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 java.util.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<java.lang.String,java.lang.Object> getAttributes()
getAttributes
in interface org.eclipse.gef4.common.attributes.IAttributeStore
public java.util.Set<Edge> getLocalIncomingEdges()
Edge
s of this Node
. Only the
associated graph
is scanned for incoming edges, and
not the whole graph hierarchy.Edge
s.public java.util.Set<Node> getLocalNeighbors()
Node
, i.e. the union of the
getLocalPredecessorNodes()
and getLocalSuccessorNodes()
.Node
.public java.util.Set<Edge> getLocalOutgoingEdges()
Edge
s of this Node
. Only the
associated graph
is scanned for outgoing edges, and
not the whole graph hierarchy.Edge
s.public java.util.Set<Node> getLocalPredecessorNodes()
Node
s of this Node
. Only
the associated graph
is scanned for predecessor
nodes, and not the whole graph hierarchy.Node
s.public java.util.Set<Node> getLocalSuccessorNodes()
Node
s of this Node
. Only the
associated graph
is scanned for successor nodes, and
not the whole graph hierarchy.Node
s.public Graph getNestedGraph()
public void setNestedGraph(Graph nestedGraph)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2014 itemis AG and others. All rights reserved.