| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
clock |
Clock | 可选 optional 此视图模型包装的时钟对象,如果未定义,将创建一个新实例。 The clock object wrapped by this view model, if undefined a new instance will be created. |
另见: See:
成员 Members
获取或设置时钟是否可以设置动画。看 Gets or sets whether the clock can animate. See
Clock#canAnimate。这个性质是可以观察到的。 . This property is observable.
获取底层时钟。 Gets the underlying Clock.
clockRange : ClockRange
获取或设置时钟范围设置。参见 Gets or sets the clock range setting. See
Clock#clockRange。这个性质是可以观察到的。 . This property is observable.
clockStep : ClockStep
获取或设置时钟步设置。参见 Gets or sets the clock step setting. See
Clock#clockStep。这个性质是可以观察到的。 . This property is observable.
currentTime : JulianDate
获取或设置当前时间。参见 Gets or sets the current time. See
Clock#currentTime。这个性质是可以观察到的。 . This property is observable.
获取或设置时钟倍频器。参见 Gets or sets the clock multiplier. See
Clock#multiplier。这个性质是可以观察到的。 . This property is observable.
获取或设置时钟是否应设置动画。参见 Gets or sets whether the clock should animate. See
Clock#shouldAnimate。这个性质是可以观察到的。 . This property is observable.
startTime : JulianDate
获取或设置时钟的开始时间。参见 Gets or sets the start time of the clock. See
Clock#startTime。这个性质是可以观察到的。 . This property is observable.
stopTime : JulianDate
获取或设置时钟的停止时间。参见 Gets or sets the stop time of the clock. See
Clock#stopTime。这个性质是可以观察到的。 . This property is observable.
systemTime : JulianDate
获取当前系统时间。这个性质是可以观察到的。 Gets the current system time. This property is observable.
方法 Methods
破坏视图模型。当不再需要视图模型时,应该调用它来正确清理视图模型。 Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.
返回: Returns:
如果对象已被销毁,则为 true,否则为 false。 true if the object has been destroyed, false otherwise.
使用底层时钟的内容更新视图模型。如果底层时钟发生变化,则可以调用以强制更新 viewModel Updates the view model with the contents of the underlying clock. Can be called to force an update of the viewModel if the underlying clock has changed and
Clock.tick 尚未被调用。 has not yet been called.
