Class BasicModularGraphModel.BasicNodeModel

    • Constructor Summary

      Constructors 
      Constructor Description
      BasicNodeModel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getNodeCount​(java.lang.Object composite)
      Return the number of nodes contained in this graph or composite node.
      java.lang.Object getParent​(java.lang.Object node)
      Return the graph parent of the given node.
      java.util.Iterator inEdges​(java.lang.Object node)
      Return an iterator over the edges coming into the given node.
      java.util.Iterator nodes​(java.lang.Object composite)
      Provide an iterator over the nodes in the given graph or composite node.
      java.util.Iterator nodesAfterEdges​(java.lang.Object composite)
      Provide an iterator over the nodes that should be rendered after to the edges.
      java.util.Iterator nodesBeforeEdges​(java.lang.Object composite)
      Provide an iterator over the nodes that should be rendered prior to the edges.
      java.util.Iterator outEdges​(java.lang.Object node)
      Return an iterator over the edges coming out of the given node.
      void setParent​(java.lang.Object node, java.lang.Object parent)
      Set the graph parent of the given node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicNodeModel

        public BasicNodeModel()
    • Method Detail

      • inEdges

        public java.util.Iterator inEdges​(java.lang.Object node)
        Return an iterator over the edges coming into the given node.
        Specified by:
        inEdges in interface NodeModel
      • outEdges

        public java.util.Iterator outEdges​(java.lang.Object node)
        Return an iterator over the edges coming out of the given node.
        Specified by:
        outEdges in interface NodeModel
      • getParent

        public java.lang.Object getParent​(java.lang.Object node)
        Return the graph parent of the given node.
        Specified by:
        getParent in interface NodeModel
      • setParent

        public void setParent​(java.lang.Object node,
                              java.lang.Object parent)
        Set the graph parent of the given node. Implementors of this method are also responsible for insuring that it is set properly as the child of the graph in the graph.
        Specified by:
        setParent in interface MutableNodeModel
      • getNodeCount

        public int getNodeCount​(java.lang.Object composite)
        Return the number of nodes contained in this graph or composite node.
        Specified by:
        getNodeCount in interface CompositeModel
      • nodes

        public java.util.Iterator nodes​(java.lang.Object composite)
        Provide an iterator over the nodes in the given graph or composite node. This iterator does not necessarily support removal operations.
        Specified by:
        nodes in interface CompositeModel
      • nodesBeforeEdges

        public java.util.Iterator nodesBeforeEdges​(java.lang.Object composite)
        Provide an iterator over the nodes that should be rendered prior to the edges. This iterator does not necessarily support removal operations. In this base class, this returns the same iterator as the nodes(Object) method.
        Specified by:
        nodesBeforeEdges in interface CompositeModel
      • nodesAfterEdges

        public java.util.Iterator nodesAfterEdges​(java.lang.Object composite)
        Provide an iterator over the nodes that should be rendered after to the edges. This iterator does not necessarily support removal operations. In this base class, this returns an iterator over nothing.
        Specified by:
        nodesAfterEdges in interface CompositeModel