Class Timeline

java.lang.Object
org.graphstream.stream.Timeline
All Implemented Interfaces:
Iterable<Graph>, Replayable, Source

public class Timeline
extends Object
implements Source, Replayable, Iterable<Graph>
  • Field Details

  • Constructor Details

    • Timeline

      public Timeline()
  • Method Details

    • reset

      public void reset()
    • play

      public void play​(double from, double to)
    • play

      public void play​(double from, double to, Sink sink)
    • play

      public void play()
    • play

      public void play​(Sink sink)
    • playback

      public void playback()
    • playback

      public void playback​(Sink sink)
    • seek

      public void seek​(int i)
    • seekStart

      public void seekStart()
    • seekEnd

      public void seekEnd()
    • hasNext

      public boolean hasNext()
    • next

      public void next()
    • hasPrevious

      public boolean hasPrevious()
    • previous

      public void previous()
    • begin

      public void begin​(Source source)
      Parameters:
      source -
    • begin

      public void begin​(Graph source)
      Parameters:
      source -
    • end

      public void end()
    • iterator

      public Iterator<Graph> iterator()
      Specified by:
      iterator in interface Iterable<Graph>
    • getReplayController

      public Replayable.Controller getReplayController()
      Description copied from interface: Replayable
      Get a controller to replay the graph.
      Specified by:
      getReplayController in interface Replayable
      Returns:
      a new replay controller
    • addSink

      public void addSink​(Sink sink)
      Description copied from interface: Source
      Add a sink for all graph events (attributes and graph elements) coming from this source. This is similar to registering a sink for attributes an another for elements.
      Specified by:
      addSink in interface Source
      Parameters:
      sink - The sink to register.
    • removeSink

      public void removeSink​(Sink sink)
      Description copied from interface: Source
      Remove a sink.
      Specified by:
      removeSink in interface Source
      Parameters:
      sink - The sink to remove, if it does not exist, this is ignored silently.
    • addAttributeSink

      public void addAttributeSink​(AttributeSink sink)
      Description copied from interface: Source
      Add a sink for attribute events only. Attribute events include attribute addition change and removal.
      Specified by:
      addAttributeSink in interface Source
      Parameters:
      sink - The sink to register.
    • removeAttributeSink

      public void removeAttributeSink​(AttributeSink sink)
      Description copied from interface: Source
      Remove an attribute sink.
      Specified by:
      removeAttributeSink in interface Source
      Parameters:
      sink - The sink to remove, if it does not exist, this is ignored silently.
    • addElementSink

      public void addElementSink​(ElementSink sink)
      Description copied from interface: Source
      Add a sink for elements events only. Elements events include, addition and removal of nodes and edges, as well as step events.
      Specified by:
      addElementSink in interface Source
      Parameters:
      sink - The sink to register.
    • removeElementSink

      public void removeElementSink​(ElementSink sink)
      Description copied from interface: Source
      Remove an element sink.
      Specified by:
      removeElementSink in interface Source
      Parameters:
      sink - The sink to remove, if it does not exist, this is ignored silently.
    • clearElementSinks

      public void clearElementSinks()
      Description copied from interface: Source
      Remove all listener element sinks.
      Specified by:
      clearElementSinks in interface Source
    • clearAttributeSinks

      public void clearAttributeSinks()
      Description copied from interface: Source
      Remove all listener attribute sinks.
      Specified by:
      clearAttributeSinks in interface Source
    • clearSinks

      public void clearSinks()
      Description copied from interface: Source
      Remove all listener sinks.
      Specified by:
      clearSinks in interface Source
    • main

      public static void main​(String... strings) throws Exception
      Throws:
      Exception