Class Node

java.lang.Object
org.eclipse.gef.graph.Node
All Implemented Interfaces:
org.eclipse.gef.common.attributes.IAttributeStore

public class Node extends Object implements org.eclipse.gef.common.attributes.IAttributeStore
A Node represents a vertex within a Graph.
  • Property Details

    • attributes

      public javafx.beans.property.ReadOnlyMapProperty<String,Object> attributesProperty
      Specified by:
      attributesProperty in interface org.eclipse.gef.common.attributes.IAttributeStore
      See Also:
  • Constructor Details

  • Method Details

    • attributesProperty

      public javafx.beans.property.ReadOnlyMapProperty<String,Object> attributesProperty()
      Specified by:
      attributesProperty in interface org.eclipse.gef.common.attributes.IAttributeStore
      See Also:
    • getAllIncomingEdges

      public Set<Edge> getAllIncomingEdges()
      Returns all incoming Edges of this Node. The full graph hierarchy is scanned for incoming edges, and not just the associated graph.
      Returns:
      All incoming Edges.
    • getAllNeighbors

      public Set<Node> getAllNeighbors()
      Returns all neighbors of this Node. The full graph hierarchy is scanned for neighbors, and not just the associated graph.
      Returns:
      All neighbors.
    • getAllOutgoingEdges

      public Set<Edge> getAllOutgoingEdges()
      Returns all outgoing Edges of this Node. The full graph hierarchy is scanned for outgoing edges, and not just the associated graph.
      Returns:
      All outgoing Edges.
    • getAllPredecessorNodes

      public Set<Node> getAllPredecessorNodes()
      Returns all predecessor Nodes of this Node. The full graph hierarchy is scanned for predecessor nodes, and not just the associated graph.
      Returns:
      All predecessor Nodes.
    • getAllSuccessorNodes

      public Set<Node> getAllSuccessorNodes()
      Returns all successor Nodes of this Node. The full graph hierarchy is scanned for successor nodes, and not just the associated graph.
      Returns:
      All successor Nodes.
    • getAttributes

      public javafx.collections.ObservableMap<String,Object> getAttributes()
      Gets the value of the property attributes.
      Specified by:
      getAttributes in interface org.eclipse.gef.common.attributes.IAttributeStore
      Property description:
    • getGraph

      public Graph getGraph()
      Returns the Graph to which this Node belongs.
      Returns:
      The Graph to which this Node belongs.
    • getIncomingEdges

      public Set<Edge> getIncomingEdges()
      Returns the local incoming Edges of this Node. Only the associated graph is scanned for incoming edges, and not the whole graph hierarchy.
      Returns:
      The local incoming Edges.
    • getNeighbors

      public Set<Node> getNeighbors()
      Returns all (local) neighbors of this Node, i.e. the union of the getPredecessorNodes() and getSuccessorNodes() .
      Returns:
      All (local) neighbors of this Node.
    • getNestedGraph

      public Graph getNestedGraph()
      Returns the Graph that is nested inside of this Node. May be null.
      Returns:
      The Graph that is nested inside of this Node, or null.
    • getOutgoingEdges

      public Set<Edge> getOutgoingEdges()
      Returns the local outgoing Edges of this Node. Only the associated graph is scanned for outgoing edges, and not the whole graph hierarchy.
      Returns:
      The local outgoing Edges.
    • getPredecessorNodes

      public Set<Node> getPredecessorNodes()
      Returns the local predecessor Nodes of this Node. Only the associated graph is scanned for predecessor nodes, and not the whole graph hierarchy.
      Returns:
      The local predecessor Nodes.
    • getSuccessorNodes

      public Set<Node> getSuccessorNodes()
      Returns the local successor Nodes of this Node. Only the associated graph is scanned for successor nodes, and not the whole graph hierarchy.
      Returns:
      The local successor Nodes.
    • setNestedGraph

      public void setNestedGraph(Graph nestedGraph)
      Sets the Graph which is nested inside this Node to the given value.
      Parameters:
      nestedGraph - The new nested Graph for this Node.
    • toString

      public String toString()
      Overrides:
      toString in class Object