Modifier and Type | Class and Description |
---|---|
static interface |
AnimationViewModel.DateFormatter
A function that formats a date for display.
|
static interface |
AnimationViewModel.TimeFormatter
A function that formats a time for display.
|
Modifier and Type | Field and Description |
---|---|
ClockViewModel |
clockViewModel
Gets the clock view model.
|
AnimationViewModel.DateFormatter |
dateFormatter
Gets or sets the function which formats a date for display.
|
String |
dateLabel
Gets the string representation of the current date.
|
static AnimationViewModel.DateFormatter |
defaultDateFormatter
Gets or sets the default date formatter used by new instances.
|
static double[] |
defaultTicks
Gets or sets the default array of known clock multipliers associated with new instances of the shuttle ring.
|
static AnimationViewModel.TimeFormatter |
defaultTimeFormatter
Gets or sets the default time formatter used by new instances.
|
Command |
faster
Gets a command that increases the speed of animation.
|
String |
multiplierLabel
Gets the string representation of the current multiplier.
|
ToggleButtonViewModel |
pauseViewModel
Gets the pause toggle button view model.
|
ToggleButtonViewModel |
playForwardViewModel
Gets the play toggle button view model.
|
ToggleButtonViewModel |
playRealtimeViewModel
Gets the realtime toggle button view model.
|
ToggleButtonViewModel |
playReverseViewModel
Gets the reverse toggle button view model.
|
double |
shuttleRingAngle
Gets or sets the current shuttle ring angle.
|
boolean |
shuttleRingDragging
Gets or sets whether the shuttle ring is currently being dragged.
|
Command |
slower
Gets a command that decreases the speed of animation.
|
boolean |
snapToTicks
Gets or sets whether dragging the shuttle ring should cause the multiplier to snap to the defined tick values
rather than interpolating between them.
|
AnimationViewModel.TimeFormatter |
timeFormatter
Gets or sets the function which formats a time for display.
|
String |
timeLabel
Gets the string representation of the current time.
|
Constructor and Description |
---|
AnimationViewModel(ClockViewModel clockViewModel)
The view model for the Animation widget.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getShuttleRingTicks()
Gets a copy of the array of positive known clock multipliers to associate with the shuttle ring.
|
void |
setShuttleRingTicks(double[] positiveTicks)
Sets the array of positive known clock multipliers to associate with the shuttle ring.
|
@JsProperty public static AnimationViewModel.DateFormatter defaultDateFormatter
@JsProperty public static double[] defaultTicks
public static AnimationViewModel.TimeFormatter defaultTimeFormatter
@JsProperty public ClockViewModel clockViewModel
@JsProperty public AnimationViewModel.DateFormatter dateFormatter
defaultDateFormatter
@JsProperty public String dateLabel
@JsProperty public Command faster
@JsProperty public String multiplierLabel
@JsProperty public ToggleButtonViewModel pauseViewModel
@JsProperty public ToggleButtonViewModel playForwardViewModel
@JsProperty public ToggleButtonViewModel playRealtimeViewModel
@JsProperty public ToggleButtonViewModel playReverseViewModel
@JsProperty public double shuttleRingAngle
@JsProperty public boolean shuttleRingDragging
@JsProperty public Command slower
@JsProperty public boolean snapToTicks
public AnimationViewModel.TimeFormatter timeFormatter
defaultTimeFormatter
@JsProperty public String timeLabel
@JsConstructor public AnimationViewModel(ClockViewModel clockViewModel)
clockViewModel
- The ClockViewModel instance to use.Animation
@JsMethod public double[] getShuttleRingTicks()
@JsMethod public void setShuttleRingTicks(double[] positiveTicks)
positiveTicks
- The list of known positive clock multipliers to associate with the shuttle ring.Copyright © 2019. All rights reserved.