public class Timeline extends java.lang.Object implements Source, Replayable, java.lang.Iterable<Graph>
Replayable.Controller
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TIME_PREFIX |
Constructor and Description |
---|
Timeline() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeSink(AttributeSink sink)
Add a sink for attribute events only.
|
void |
addElementSink(ElementSink sink)
Add a sink for elements events only.
|
void |
addSink(Sink sink)
Add a sink for all graph events (attributes and graph elements) coming from
this source.
|
void |
begin(Graph source) |
void |
begin(Source source) |
void |
clearAttributeSinks()
Remove all listener attribute sinks.
|
void |
clearElementSinks()
Remove all listener element sinks.
|
void |
clearSinks()
Remove all listener sinks.
|
void |
end() |
Replayable.Controller |
getReplayController()
Get a controller to replay the graph.
|
boolean |
hasNext() |
boolean |
hasPrevious() |
java.util.Iterator<Graph> |
iterator() |
static void |
main(java.lang.String... strings) |
void |
next() |
void |
play() |
void |
play(double from,
double to) |
void |
play(double from,
double to,
Sink sink) |
void |
play(Sink sink) |
void |
playback() |
void |
playback(Sink sink) |
void |
previous() |
void |
removeAttributeSink(AttributeSink sink)
Remove an attribute sink.
|
void |
removeElementSink(ElementSink sink)
Remove an element sink.
|
void |
removeSink(Sink sink)
Remove a sink.
|
void |
reset() |
void |
seek(int i) |
void |
seekEnd() |
void |
seekStart() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
replay, tryReplay
public static final java.lang.String TIME_PREFIX
public void reset()
public void play(double from, double to)
public void play(double from, double to, Sink sink)
public void play()
public void play(Sink sink)
public void playback()
public void playback(Sink sink)
public void seek(int i)
public void seekStart()
public void seekEnd()
public boolean hasNext()
public void next()
public boolean hasPrevious()
public void previous()
public void begin(Source source)
source
- public void begin(Graph source)
source
- public void end()
public java.util.Iterator<Graph> iterator()
iterator
in interface java.lang.Iterable<Graph>
public Replayable.Controller getReplayController()
Replayable
getReplayController
in interface Replayable
public void addSink(Sink sink)
Source
public void removeSink(Sink sink)
Source
removeSink
in interface Source
sink
- The sink to remove, if it does not exist, this is ignored
silently.public void addAttributeSink(AttributeSink sink)
Source
addAttributeSink
in interface Source
sink
- The sink to register.public void removeAttributeSink(AttributeSink sink)
Source
removeAttributeSink
in interface Source
sink
- The sink to remove, if it does not exist, this is ignored
silently.public void addElementSink(ElementSink sink)
Source
addElementSink
in interface Source
sink
- The sink to register.public void removeElementSink(ElementSink sink)
Source
removeElementSink
in interface Source
sink
- The sink to remove, if it does not exist, this is ignored
silently.public void clearElementSinks()
Source
clearElementSinks
in interface Source
public void clearAttributeSinks()
Source
clearAttributeSinks
in interface Source
public void clearSinks()
Source
clearSinks
in interface Source
public static void main(java.lang.String... strings) throws java.lang.Exception
java.lang.Exception