Class DefaultListenableGraph.FlyweightEdgeEvent<VV,​EE>

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    DefaultListenableGraph<V,​E>

    private static class DefaultListenableGraph.FlyweightEdgeEvent<VV,​EE>
    extends GraphEdgeChangeEvent<VV,​EE>
    A reuseable edge event.
    • Constructor Detail

      • FlyweightEdgeEvent

        public FlyweightEdgeEvent​(java.lang.Object eventSource,
                                  int type,
                                  EE e)
        See Also:
        GraphEdgeChangeEvent
    • Method Detail

      • setEdge

        protected void setEdge​(EE e)
        Sets the edge of this event.
        Parameters:
        e - the edge to be set.
      • setEdgeSource

        protected void setEdgeSource​(VV v)
      • setEdgeTarget

        protected void setEdgeTarget​(VV v)
      • setEdgeWeight

        protected void setEdgeWeight​(double weight)
      • setType

        protected void setType​(int type)
        Set the event type of this event.
        Parameters:
        type - the type to be set.