Klasse TimeTracker
java.lang.Object
java.lang.Thread
com.flexganttfx.view.timeline.TimeTracker
- Alle implementierten Schnittstellen:
Runnable
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
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Eigenschaftsübersicht
Eigenschaften -
Feldübersicht
Von Klasse geerbte Felder java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal longgetDelay()Returns the delay in milliseconds between updates ofTimelineModel.nowProperty().protected InstantgetNow()Override to return the instant that will be set as "now" on the timeline model.final InstantgetTime()Ruft den Wert dertime-Eigenschaft ab.voidrun()final voidsetDelay(long millis) Sets the delay between updates ofTimelineModel.nowProperty().final voidStarts the tracking of the time.final voidStops the tracking of the time.final ReadOnlyObjectProperty<Instant> Von Klasse geerbte Methoden java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Eigenschaftsdetails
-
time
- Siehe auch:
-
-
Konstruktordetails
-
TimeTracker
public TimeTracker()Constructs a new tracker.- Seit:
- 1.0
-
-
Methodendetails
-
timeProperty
- Gibt zurück:
- die Eigenschaft
time - Siehe auch:
-
getTime
Ruft den Wert dertime-Eigenschaft ab.- Eigenschaftsbeschreibung:
- Gibt zurück:
- Wert der Eigenschaft
time - Siehe auch:
-
getDelay
public final long getDelay()Returns the delay in milliseconds between updates ofTimelineModel.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 ofTimelineModel.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
-
stopTracking
public final void stopTracking()Stops the tracking of the time.- Seit:
- 1.0
-
getNow
Override to return the instant that will be set as "now" on the timeline model. The default implementation usesInstant.now().- Gibt zurück:
- the "now" instant
- Siehe auch:
-