Class BasicModularGraphModel.BasicEdgeModel

    • Constructor Summary

      Constructors 
      Constructor Description
      BasicEdgeModel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean acceptHead​(java.lang.Object edge, java.lang.Object node)
      Return true if the head of the given edge can be attached to the given node.
      boolean acceptTail​(java.lang.Object edge, java.lang.Object node)
      Return true if the tail of the given edge can be attached to the given node.
      java.lang.Object getHead​(java.lang.Object edge)
      Return the head node of the given edge.
      java.lang.Object getTail​(java.lang.Object edge)
      Return the tail node of this edge.
      boolean isDirected​(java.lang.Object edge)
      Return whether or not this edge is directed.
      void setHead​(java.lang.Object edge, java.lang.Object newHead)
      Connect an edge to the given head node and notify listeners with an EDGE_HEAD_CHANGED event.
      void setTail​(java.lang.Object edge, java.lang.Object newTail)
      Connect an edge to the given tail node and notify listeners with an EDGE_TAIL_CHANGED event.
      • Methods inherited from class java.lang.Object

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

      • BasicEdgeModel

        public BasicEdgeModel()
    • Method Detail

      • acceptHead

        public boolean acceptHead​(java.lang.Object edge,
                                  java.lang.Object node)
        Return true if the head of the given edge can be attached to the given node.
        Specified by:
        acceptHead in interface MutableEdgeModel
      • acceptTail

        public boolean acceptTail​(java.lang.Object edge,
                                  java.lang.Object node)
        Return true if the tail of the given edge can be attached to the given node.
        Specified by:
        acceptTail in interface MutableEdgeModel
      • getHead

        public java.lang.Object getHead​(java.lang.Object edge)
        Return the head node of the given edge.
        Specified by:
        getHead in interface EdgeModel
      • getTail

        public java.lang.Object getTail​(java.lang.Object edge)
        Return the tail node of this edge.
        Specified by:
        getTail in interface EdgeModel
      • isDirected

        public boolean isDirected​(java.lang.Object edge)
        Return whether or not this edge is directed.
        Specified by:
        isDirected in interface EdgeModel
      • setHead

        public void setHead​(java.lang.Object edge,
                            java.lang.Object newHead)
        Connect an edge to the given head node and notify listeners with an EDGE_HEAD_CHANGED event.
        Specified by:
        setHead in interface MutableEdgeModel
      • setTail

        public void setTail​(java.lang.Object edge,
                            java.lang.Object newTail)
        Connect an edge to the given tail node and notify listeners with an EDGE_TAIL_CHANGED event.
        Specified by:
        setTail in interface MutableEdgeModel