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
Properties -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheNode.Buildercan be used to construct aNodelittle by little. -
Field Summary
Fields inherited from interface org.eclipse.gef.common.attributes.IAttributeStore
ATTRIBUTES_PROPERTY -
Constructor Summary
Constructors -
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().voidsetNestedGraph(Graph nestedGraph) toString()
-
Property Details
-
attributes
- Specified by:
attributesPropertyin interfaceorg.eclipse.gef.common.attributes.IAttributeStore- See Also:
-
-
Constructor Details
-
Node
public Node()Constructs a newNode. -
Node
Constructs a newNodeand copies the given attributesProperty into theattributesProperty mapof thisNode.- Parameters:
attributes- AMapcontaining the attributesProperty which are copied into theattributesProperty mapof thisNode.
-
-
Method Details
-
attributesProperty
- Specified by:
attributesPropertyin interfaceorg.eclipse.gef.common.attributes.IAttributeStore- See Also:
-
getAllIncomingEdges
Returns all incomingEdges of thisNode. The full graph hierarchy is scanned for incoming edges, and not just theassociated graph.- Returns:
- All incoming
Edges.
-
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 outgoingEdges of thisNode. The full graph hierarchy is scanned for outgoing edges, and not just theassociated graph.- Returns:
- All outgoing
Edges.
-
getAllPredecessorNodes
Returns all predecessorNodes of thisNode. The full graph hierarchy is scanned for predecessor nodes, and not just theassociated graph.- Returns:
- All predecessor
Nodes.
-
getAllSuccessorNodes
Returns all successorNodes of thisNode. The full graph hierarchy is scanned for successor nodes, and not just theassociated graph.- Returns:
- All successor
Nodes.
-
getAttributes
Gets the value of the property attributes.- Specified by:
getAttributesin interfaceorg.eclipse.gef.common.attributes.IAttributeStore- Property description:
-
getGraph
-
getIncomingEdges
Returns the local incomingEdges of thisNode. Only theassociated graphis scanned for incoming edges, and not the whole graph hierarchy.- Returns:
- The local incoming
Edges.
-
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 outgoingEdges of thisNode. Only theassociated graphis scanned for outgoing edges, and not the whole graph hierarchy.- Returns:
- The local outgoing
Edges.
-
getPredecessorNodes
Returns the local predecessorNodes of thisNode. Only theassociated graphis scanned for predecessor nodes, and not the whole graph hierarchy.- Returns:
- The local predecessor
Nodes.
-
getSuccessorNodes
Returns the local successorNodes of thisNode. Only theassociated graphis scanned for successor nodes, and not the whole graph hierarchy.- Returns:
- The local successor
Nodes.
-
setNestedGraph
-
toString
-