Package org.eclipse.gef.graph
Class Node
- java.lang.Object
-
- org.eclipse.gef.graph.Node
-
- All Implemented Interfaces:
org.eclipse.gef.common.attributes.IAttributeStore
public class Node extends java.lang.Object implements org.eclipse.gef.common.attributes.IAttributeStore
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNode.BuilderTheNode.Buildercan be used to construct aNodelittle by little.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 thisNode.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()GraphgetGraph()java.util.Set<Edge>getIncomingEdges()java.util.Set<Node>getNeighbors()Returns all (local) neighbors of thisNode, i.e. the union of thegetPredecessorNodes()andgetSuccessorNodes().GraphgetNestedGraph()java.util.Set<Edge>getOutgoingEdges()java.util.Set<Node>getPredecessorNodes()java.util.Set<Node>getSuccessorNodes()voidsetNestedGraph(Graph nestedGraph)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Node
public Node()
Constructs a newNode.
-
Node
public Node(java.util.Map<java.lang.String,java.lang.Object> attributes)
Constructs a newNodeand copies the given attributesProperty into theattributesProperty mapof thisNode.- Parameters:
attributes- AMapcontaining the attributesProperty which are copied into theattributesProperty mapof thisNode.
-
-
Method Detail
-
attributesProperty
public javafx.beans.property.ReadOnlyMapProperty<java.lang.String,java.lang.Object> attributesProperty()
- Specified by:
attributesPropertyin interfaceorg.eclipse.gef.common.attributes.IAttributeStore
-
getAllIncomingEdges
public java.util.Set<Edge> 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
public java.util.Set<Node> getAllNeighbors()
Returns all neighbors of thisNode. The full graph hierarchy is scanned for neighbors, and not just theassociated graph.- Returns:
- All neighbors.
-
getAllOutgoingEdges
public java.util.Set<Edge> 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
public java.util.Set<Node> 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
public java.util.Set<Node> 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
public javafx.collections.ObservableMap<java.lang.String,java.lang.Object> getAttributes()
- Specified by:
getAttributesin interfaceorg.eclipse.gef.common.attributes.IAttributeStore
-
getIncomingEdges
public java.util.Set<Edge> 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
public java.util.Set<Node> getNeighbors()
Returns all (local) neighbors of thisNode, i.e. the union of thegetPredecessorNodes()andgetSuccessorNodes().- Returns:
- All (local) neighbors of this
Node.
-
getNestedGraph
public Graph getNestedGraph()
-
getOutgoingEdges
public java.util.Set<Edge> 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
public java.util.Set<Node> 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
public java.util.Set<Node> 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
public void setNestedGraph(Graph nestedGraph)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-