Package org.eclipse.gef.graph
Class Node
java.lang.Object
org.eclipse.gef.graph.Node
- All Implemented Interfaces:
org.eclipse.gef.common.attributes.IAttributeStore
-
Property Summary
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TheNode.Builder
can be used to construct aNode
little by little. -
Field Summary
Fields inherited from interface org.eclipse.gef.common.attributes.IAttributeStore
ATTRIBUTES_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns all neighbors of thisNode
.Gets the value of the property attributes.getGraph()
Returns all (local) neighbors of thisNode
, i.e. the union of thegetPredecessorNodes()
andgetSuccessorNodes()
.void
setNestedGraph
(Graph nestedGraph) toString()
-
Property Details
-
attributes
- Specified by:
attributesProperty
in interfaceorg.eclipse.gef.common.attributes.IAttributeStore
- See Also:
-
-
Constructor Details
-
Node
public Node()Constructs a newNode
. -
Node
Constructs a newNode
and copies the given attributesProperty into theattributesProperty map
of thisNode
.- Parameters:
attributes
- AMap
containing the attributesProperty which are copied into theattributesProperty map
of thisNode
.
-
-
Method Details
-
attributesProperty
- Specified by:
attributesProperty
in interfaceorg.eclipse.gef.common.attributes.IAttributeStore
- See Also:
-
getAllIncomingEdges
Returns all incomingEdge
s of thisNode
. The full graph hierarchy is scanned for incoming edges, and not just theassociated graph
.- Returns:
- All incoming
Edge
s.
-
getAllNeighbors
Returns all neighbors of thisNode
. The full graph hierarchy is scanned for neighbors, and not just theassociated graph
.- Returns:
- All neighbors.
-
getAllOutgoingEdges
Returns all outgoingEdge
s of thisNode
. The full graph hierarchy is scanned for outgoing edges, and not just theassociated graph
.- Returns:
- All outgoing
Edge
s.
-
getAllPredecessorNodes
Returns all predecessorNode
s of thisNode
. The full graph hierarchy is scanned for predecessor nodes, and not just theassociated graph
.- Returns:
- All predecessor
Node
s.
-
getAllSuccessorNodes
Returns all successorNode
s of thisNode
. The full graph hierarchy is scanned for successor nodes, and not just theassociated graph
.- Returns:
- All successor
Node
s.
-
getAttributes
Gets the value of the property attributes.- Specified by:
getAttributes
in interfaceorg.eclipse.gef.common.attributes.IAttributeStore
- Property description:
-
getGraph
-
getIncomingEdges
Returns the local incomingEdge
s of thisNode
. Only theassociated graph
is scanned for incoming edges, and not the whole graph hierarchy.- Returns:
- The local incoming
Edge
s.
-
getNeighbors
Returns all (local) neighbors of thisNode
, i.e. the union of thegetPredecessorNodes()
andgetSuccessorNodes()
.- Returns:
- All (local) neighbors of this
Node
.
-
getNestedGraph
-
getOutgoingEdges
Returns the local outgoingEdge
s of thisNode
. Only theassociated graph
is scanned for outgoing edges, and not the whole graph hierarchy.- Returns:
- The local outgoing
Edge
s.
-
getPredecessorNodes
Returns the local predecessorNode
s of thisNode
. Only theassociated graph
is scanned for predecessor nodes, and not the whole graph hierarchy.- Returns:
- The local predecessor
Node
s.
-
getSuccessorNodes
Returns the local successorNode
s of thisNode
. Only theassociated graph
is scanned for successor nodes, and not the whole graph hierarchy.- Returns:
- The local successor
Node
s.
-
setNestedGraph
-
toString
-