Package org.gephi.timeline.api
Interface TimelineModel
-
public interface TimelineModelTimeline model which holds timeline bounds, interval and animation flags.The timeline controls the currently selected time interval, accessible in the
DynamicAPI. When enabled, it maintains the time scale and the position of the interval.It also holds configuration values for animation such as speed and step size.
- Author:
- Julian Bilcke, Mathieu Bastian
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTimelineModel.PlayModeDefines how the interval is moved when animating.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimelineChartgetChart()Returns the current timeline chart ornullif node.doublegetCustomMax()Returns the custom max value.doublegetCustomMin()Returns the custom min value.doublegetIntervalEnd()Returns the upper bound of the interval.doublegetIntervalStart()Returns the lower bound of the interval.doublegetMax()Returns the max value of the time scale.doublegetMin()Returns the min value of the time scale.intgetPlayDelay()Returns the play delay in milliseconds.TimelineModel.PlayModegetPlayMode()Returns the play mode.doublegetPlayStep()Returns the play step.TimeFormatgetTimeFormat()Returns the current time format.booleanhasCustomBounds()Returnstrueif custom bounds are defined.booleanhasValidBounds()Returnstrueif none of the min and max time values are infinity.booleanisEnabled()Returnstrueif the timeline is enabled.booleanisPlaying()Returnstrueif the timeline is playing.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Returnstrueif the timeline is enabled. When enabled, the timeline is filtering the current graph.- Returns:
trueif the timeline is enabled,falseotherwise
-
getMin
double getMin()
Returns the min value of the time scale. This is the start of the earliest interval in the workspace.- Returns:
- the min
-
getMax
double getMax()
Returns the max value of the time scale. This is the end of the latest interval in the workspace.- Returns:
- the max
-
getCustomMin
double getCustomMin()
Returns the custom min value. This value can't be inferior thanmin- Returns:
- the custom min
-
getCustomMax
double getCustomMax()
Returns the custom max value. This value can't be superior thanmax- Returns:
- the custom max
-
hasCustomBounds
boolean hasCustomBounds()
Returnstrueif custom bounds are defined. Returnsfalsewhen custom bounds are equal tominandmax.- Returns:
trueif custom bounds are defined,falseotherwise.
-
hasValidBounds
boolean hasValidBounds()
Returnstrueif none of the min and max time values are infinity.- Returns:
trueif the time scale is valid,falseotherwise
-
getIntervalStart
double getIntervalStart()
Returns the lower bound of the interval.- Returns:
- the interval start
-
getIntervalEnd
double getIntervalEnd()
Returns the upper bound of the interval.- Returns:
- the interval end
-
getTimeFormat
TimeFormat getTimeFormat()
Returns the current time format. Default isDOUBLE- Returns:
- the current tie
-
getPlayDelay
int getPlayDelay()
Returns the play delay in milliseconds. Defines the time between each interval shift.- Returns:
- the play delay
-
getPlayStep
double getPlayStep()
Returns the play step. Defines how much the interval is moved at each step during animation. Defined in percentage of the total interval.- Returns:
- the play step
-
isPlaying
boolean isPlaying()
Returnstrueif the timeline is playing.- Returns:
trueis playing,falseotherwise
-
getPlayMode
TimelineModel.PlayMode getPlayMode()
Returns the play mode. This defines how the interval is moved.- Returns:
- the play mode
-
getChart
TimelineChart getChart()
Returns the current timeline chart ornullif node.- Returns:
- the timeline chart or
null
-
-