Class TimeTracker

    • Constructor Detail

      • TimeTracker

        public TimeTracker()
        Constructs a new tracker.
        Since:
        1.0
    • Method Detail

      • getTime

        public final Instant getTime()
      • getDelay

        public final long getDelay()
        Returns the delay in milliseconds between updates of TimelineModel.nowProperty(). The default is 1000 millis.
        Returns:
        the default delay between update calls
        Since:
        1.0
      • setDelay

        public final void setDelay​(long millis)
        Sets the delay between updates of TimelineModel.nowProperty(). The default is 1000 millis.
        Parameters:
        millis - the new delay
        Throws:
        IllegalArgumentException - if the delay is zero or smaller
        Since:
        1.0
      • startTracking

        public final void startTracking()
        Starts the tracking of the time.
        Since:
        1.0
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • stopTracking

        public final void stopTracking()
        Stops the tracking of the time.
        Since:
        1.0