Modifier and Type | Field and Description |
---|---|
boolean |
canAnimate
Gets or sets whether the clock can animate.
|
Clock |
clock
Gets the underlying Clock.
|
Number |
clockRange
Gets or sets the clock range setting.
|
Number |
clockStep
Gets or sets the clock step setting.
|
JulianDate |
currentTime
Gets or sets the current time.
|
double |
multiplier
Gets or sets the clock multiplier.
|
boolean |
shouldAnimate
Gets or sets whether the clock should animate.
|
JulianDate |
startTime
Gets or sets the start time of the clock.
|
JulianDate |
stopTime
Gets or sets the stop time of the clock.
|
JulianDate |
systemTime
Gets the current system time.
|
Constructor and Description |
---|
ClockViewModel()
A view model which exposes a Clock for user interfaces.
|
ClockViewModel(Clock clock)
A view model which exposes a Clock for user interfaces.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the view model.
|
boolean |
isDestroyed() |
void |
synchronize()
Updates the view model with the contents of the underlying clock.
|
@JsProperty public boolean canAnimate
@JsProperty public Clock clock
@JsProperty public Number clockRange
@JsProperty public Number clockStep
@JsProperty public JulianDate currentTime
@JsProperty public double multiplier
Clock.multiplier
. This property is observable.@JsProperty public boolean shouldAnimate
Clock.shouldAnimate
. This property is observable.@JsProperty public JulianDate startTime
Clock.startTime
. This property is observable.@JsProperty public JulianDate stopTime
Clock.stopTime
. This property is observable.@JsProperty public JulianDate systemTime
@JsConstructor public ClockViewModel()
Clock
@JsMethod public void destroy()
@JsMethod public boolean isDestroyed()
@JsMethod public void synchronize()
Copyright © 2019. All rights reserved.