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 Thread
Thread.State, Thread.UncaughtExceptionHandler -
Eigenschaftsübersicht
Eigenschaften -
Feldübersicht
Von Klasse geerbte Felder Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator 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()Updates the tracked time with the current instant.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> The time property.Von Klasse geerbte Methoden 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
The time property. Exposes the current tracked time.- Siehe auch:
-
-
Konstruktordetails
-
TimeTracker
public TimeTracker()Constructs a new tracker.- Seit:
- 1.0
-
-
Methodendetails
-
timeProperty
The time property. Exposes the current tracked time.- Gibt zurück:
- the time property
- Siehe auch:
-
getTime
Ruft den Wert dertime-Eigenschaft ab.- Eigenschaftsbeschreibung:
- The time property. Exposes the current tracked time.
- 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:
-