public class Timeline extends Object implements Source, Replayable, Iterable<Graph>
Replayable.Controller| Modifier and Type | Field and Description |
|---|---|
static 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() |
Iterator<Graph> |
iterator() |
static void |
main(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() |
public static final 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 Replayable.Controller getReplayController()
ReplayablegetReplayController in interface Replayablepublic void addSink(Sink sink)
Sourcepublic void removeSink(Sink sink)
SourceremoveSink in interface Sourcesink - The sink to remove, if it does not exist, this is ignored
silently.public void addAttributeSink(AttributeSink sink)
SourceaddAttributeSink in interface Sourcesink - The sink to register.public void removeAttributeSink(AttributeSink sink)
SourceremoveAttributeSink in interface Sourcesink - The sink to remove, if it does not exist, this is ignored
silently.public void addElementSink(ElementSink sink)
SourceaddElementSink in interface Sourcesink - The sink to register.public void removeElementSink(ElementSink sink)
SourceremoveElementSink in interface Sourcesink - The sink to remove, if it does not exist, this is ignored
silently.public void clearElementSinks()
SourceclearElementSinks in interface Sourcepublic void clearAttributeSinks()
SourceclearAttributeSinks in interface Sourcepublic void clearSinks()
SourceclearSinks in interface SourceCopyright © 2015. All rights reserved.