public class Clock extends Object
CzmlDocument
.Constructor and Description |
---|
Clock()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
JulianDate |
getCurrentTime()
Gets the initial time when the document is first loaded.
|
TimeInterval |
getInterval()
Gets the time span covered by the document.
|
Double |
getMultiplier()
Gets how much time advances with each tick.
|
ClockRange |
getRange()
|
ClockStep |
getStep()
Gets how time advances with each tick.
|
void |
setCurrentTime(JulianDate value)
Sets the initial time when the document is first loaded.
|
void |
setInterval(TimeInterval value)
Sets the time span covered by the document.
|
void |
setMultiplier(Double value)
Sets how much time advances with each tick.
|
void |
setRange(ClockRange value)
|
void |
setStep(ClockStep value)
Sets how time advances with each tick.
|
public final TimeInterval getInterval()
public final void setInterval(TimeInterval value)
@Nullable public final JulianDate getCurrentTime()
public final void setCurrentTime(@Nullable JulianDate value)
@Nullable public final ClockRange getRange()
public final void setRange(@Nullable ClockRange value)
@Nullable public final Double getMultiplier()
Step
(get
/ set
) is ClockStep.TICK_DEPENDENT
this is the number of seconds advanced each tick.
If Step
(get
/ set
) is ClockStep.SYSTEM_CLOCK_MULTIPLIER
then the clock is advanced by the
amount of elapsed time since the last tick multiplied by this value.public final void setMultiplier(@Nullable Double value)
Step
(get
/ set
) is ClockStep.TICK_DEPENDENT
this is the number of seconds advanced each tick.
If Step
(get
/ set
) is ClockStep.SYSTEM_CLOCK_MULTIPLIER
then the clock is advanced by the
amount of elapsed time since the last tick multiplied by this value.