public interface TimelineController
By default the timeline is disabled and can be enabled with the
setEnabled()
method. Once enabled, the controller is setting its
interval value to the DynamicModel
.
The interval can be animated using the startPlay()
and
stopPlay()
methods. Configuration parameters are also available.
This controller also allows to lookup graph attribute columns that can be
used as sparklines (e.g. node count, average degree...). Use the
selectColumn()
to create a TimelineChart
accessible from
the TimelineModel
.
TimelineModel
Modifier and Type | Method and Description |
---|---|
void |
addListener(TimelineModelListener listener)
Add
listener to the list of event listerners. |
String[] |
getDynamicGraphColumns()
Returns all the possible dynamic attribute columns.
|
TimelineModel |
getModel()
Get the current model from the current workspace
|
TimelineModel |
getModel(Workspace workspace)
Returns the timeline model from
workspace . |
void |
removeListener(TimelineModelListener listener)
Remove
listerner from the list of event listeners. |
void |
selectColumn(String column)
Select a column to make a
TimelineChart of it. |
void |
setCustomBounds(double min,
double max)
Sets the timeline custom bounds.
|
void |
setEnabled(boolean enabled)
Sets the timeline enable status.
|
void |
setInterval(double from,
double to)
Sets the current timeline interval.
|
void |
setPlayMode(TimelineModel.PlayMode playMode)
Sets the play mode.
|
void |
setPlaySpeed(int delay)
Sets the play delay in milliseconds.
|
void |
setPlayStep(double step)
Sets the play step.
|
void |
setTimeFormat(TimeFormat timeFormat) |
void |
startPlay()
Starts the timeline animation using the current delay, step size and play
mode.
|
void |
stopPlay()
Stops the timeline animation.
|
TimelineModel getModel(Workspace workspace)
workspace
.workspace
- the workspace to get the model fromTimelineModel getModel()
null
if no active workspacevoid setCustomBounds(double min, double max)
min
- the lower boundmax
- the upper boundIllegalArgumentException
- if min is superior or equal than
max
or out of bounds
void setEnabled(boolean enabled)
enabled
- the enabled value to setvoid setInterval(double from, double to)
DynamicModel
and defines the interval the graph is filtered
with.from
- the lower boundto
- the upper boundIllegalArgumentException
- if min is superior or equal than
max
or out of bounds
void setTimeFormat(TimeFormat timeFormat)
void startPlay()
void stopPlay()
void setPlaySpeed(int delay)
delay
- the delay in millisecondsvoid setPlayStep(double step)
step
- the step, between 0 and 1void setPlayMode(TimelineModel.PlayMode playMode)
playMode
- the play modeString[] getDynamicGraphColumns()
void selectColumn(String column)
TimelineChart
of it. The column must be
member of the graph table.column
- the column to selectIllegalArgumentException
- if column
is not a graph
columnvoid addListener(TimelineModelListener listener)
listener
to the list of event listerners.listener
- the listener to addvoid removeListener(TimelineModelListener listener)
listerner
from the list of event listeners.listener
- the listener to removeCopyright © 2007–2015 Gephi Consortium. All rights reserved.