Class Node

  • All Implemented Interfaces:
    org.eclipse.gef.common.attributes.IAttributeStore

    public class Node
    extends java.lang.Object
    implements org.eclipse.gef.common.attributes.IAttributeStore
    A Node represents a vertex within a Graph.
    • Constructor Detail

      • Node

        public Node()
        Constructs a new Node.
      • Node

        public 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.
        Parameters:
        attributes - A Map containing the attributesProperty which are copied into the attributesProperty map of this Node.
    • Method Detail

      • attributesProperty

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

        public java.util.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 java.util.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 java.util.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 java.util.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 java.util.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<java.lang.String,​java.lang.Object> getAttributes()
        Specified by:
        getAttributes in interface org.eclipse.gef.common.attributes.IAttributeStore
      • getGraph

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

        public java.util.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.
      • 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 java.util.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 java.util.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 java.util.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object