Interface TimelineModel


  • public interface TimelineModel
    Timeline 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
    • Method Detail

      • isEnabled

        boolean isEnabled()
        Returns true if the timeline is enabled. When enabled, the timeline is filtering the current graph.
        Returns:
        true if the timeline is enabled, false otherwise
      • 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 than min
        Returns:
        the custom min
      • getCustomMax

        double getCustomMax()
        Returns the custom max value. This value can't be superior than max
        Returns:
        the custom max
      • hasCustomBounds

        boolean hasCustomBounds()
        Returns true if custom bounds are defined. Returns false when custom bounds are equal to min and max.
        Returns:
        true if custom bounds are defined, false otherwise.
      • hasValidBounds

        boolean hasValidBounds()
        Returns true if none of the min and max time values are infinity.
        Returns:
        true if the time scale is valid, false otherwise
      • 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 is DOUBLE
        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()
        Returns true if the timeline is playing.
        Returns:
        true is playing, false otherwise
      • 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 or null if node.
        Returns:
        the timeline chart or null