Klasse TimeTracker

java.lang.Object
java.lang.Thread
com.flexganttfx.view.timeline.TimeTracker
Alle implementierten Schnittstellen:
Runnable

public class TimeTracker extends Thread
A time tracker can be used to update the property TimelineModel.nowProperty(). In most cases the time "now" will be equivalent to the system time but in simulations this might not be the case. The time tracker can be used in combination with the TimelineModel by binding the TimelineModel.nowProperty() to the timeProperty().
Seit:
1.0
  • Eigenschaftsdetails

  • Konstruktordetails

    • TimeTracker

      public TimeTracker()
      Constructs a new tracker.
      Seit:
      1.0
  • Methodendetails

    • timeProperty

      public final ReadOnlyObjectProperty<Instant> timeProperty()
      Gibt zurück:
      die Eigenschaft time
      Siehe auch:
    • getTime

      public final Instant getTime()
      Ruft den Wert der time-Eigenschaft ab.
      Eigenschaftsbeschreibung:
      Gibt zurück:
      Wert der Eigenschaft time
      Siehe auch:
    • getDelay

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

      public final void setDelay(long millis)
      Sets the delay between updates of TimelineModel.nowProperty(). The default is 1000 millis.
      Parameter:
      millis - the new delay
      Löst aus:
      IllegalArgumentException - if the delay is zero or smaller
      Seit:
      1.0
    • startTracking

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

      public void run()
      Angegeben von:
      run in Schnittstelle Runnable
      Setzt außer Kraft:
      run in Klasse Thread
    • stopTracking

      public final void stopTracking()
      Stops the tracking of the time.
      Seit:
      1.0
    • getNow

      protected Instant getNow()
      Override to return the instant that will be set as "now" on the timeline model. The default implementation uses Instant.now().
      Gibt zurück:
      the "now" instant
      Siehe auch: