Timeline.
The developer controls the interpolation of a set of variables for the
interval between successive key frames by providing a target value and an
Interpolator associated with each variable. The variables are
interpolated such that they will reach their target value at the specified
time. An onFinished function is invoked on each KeyFrame if one
is provided. A KeyFrame can optionally have a name, which
will result in a cuepoint that is automatically added to the Timeline.
Timeline, KeyValue, Interpolator
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final EventHandler | |
| private final String | |
| private final EventHandler | |
| private final Duration | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | KeyFrame(Duration
the time, String timethe name, EventHandler<ActionEvent> namethe onFinished, Collection<KeyValue> onFinisheda values)javafx. of
KeyValue instancesConstructor of
If a passed in |
| public | KeyFrame(Duration
the time, String timethe name, EventHandler<ActionEvent> namethe onFinished, KeyValue... onFinishedthe values)KeyValue instancesConstructor of
If a passed in |
| public | KeyFrame(Duration
the time, EventHandler<ActionEvent> timethe onFinished, KeyValue... onFinishedthe values)KeyValue instancesConstructor of |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this is the same as obj, otherwise falsethe reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public EventHandler | Returns: theonFinished event handlerReturns the |
| public Duration | |
| public Set | |
| public int | Returns: the hash codeOverrides java. Returns a hash code for this |
| public String | Returns: the string representationOverrides java. Returns a string representation of this |
| DEFAULT_NAME | back to summary |
|---|---|
| private static final String DEFAULT_NAME | |
| DEFAULT_ON_FINISHED | back to summary |
|---|---|
| private static final EventHandler<ActionEvent> DEFAULT_ON_FINISHED | |
| name | back to summary |
|---|---|
| private final String name | |
| onFinished | back to summary |
|---|---|
| private final EventHandler<ActionEvent> onFinished | |
| time | back to summary |
|---|---|
| private final Duration time | |
| values | back to summary |
|---|---|
| private final Set<KeyValue> values | |
| KeyFrame | back to summary |
|---|---|
| public KeyFrame(Duration time, String name, EventHandler<ActionEvent> onFinished, Collection<KeyValue> values) Constructor of
If a passed in
| |
| KeyFrame | back to summary |
|---|---|
| public KeyFrame(Duration time, String name, EventHandler<ActionEvent> onFinished, KeyValue... values) Constructor of
If a passed in
| |
| KeyFrame | back to summary |
|---|---|
| public KeyFrame(Duration time, EventHandler<ActionEvent> onFinished, KeyValue... values) Constructor of
| |
| KeyFrame | back to summary |
|---|---|
| public KeyFrame(Duration time, String name, KeyValue... values) Constructor of
| |
| KeyFrame | back to summary |
|---|---|
| public KeyFrame(Duration time, KeyValue... values) Constructor of
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether some other object is "equal to" this one.
Two
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the
| |
| getOnFinished | back to summary |
|---|---|
| public EventHandler Returns the
| |
| getTime | back to summary |
|---|---|
| public Duration getTime() Returns the time offset of this
The Note While the unit of
| |
| getValues | back to summary |
|---|---|
| public Set Returns an immutable | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code for this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this | |