KeyFrame, which defines a specific point on a timeline,
can hold multiple KeyValues. KeyValue is an immutable class.
A KeyValue is defined by a target, which is an implementation of
javafx., an end value and an
Interpolator.
Most interpolators define the interpolation between two KeyFrames.
(The only exception are tangent-interpolators.)
The KeyValue of the second KeyFrame (in forward
direction) specifies the interpolator to be used in the interval.
Tangent-interpolators define the interpolation to the left and to the right of
a KeyFrame (see Interpolator.).
By default, Interpolator#LINEAR is used in the interval.
Timeline, KeyFrame, Interpolator
| Modifier and Type | Field and Description |
|---|---|
| private static final Interpolator | |
| private final Object | |
| private final Interpolator | |
| private final WritableValue | |
| private final KeyValueType |
| Access | Constructor and Description |
|---|---|
| public < the type of the T>KeyValue | KeyValue(WritableValue<T>
the target target, T the end value endValue, Interpolator the interpolator)InterpolatorCreates a |
| public < the type of the T>KeyValue | KeyValue(WritableValue<T>
the target target, T the end value endValue)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Object | |
| public Interpolator | Returns: the interpolator to be used for calculating the key value along the particular interval
|
| public WritableValue | |
| pack-priv KeyValueType | |
| 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_INTERPOLATOR | back to summary |
|---|---|
| private static final Interpolator DEFAULT_INTERPOLATOR | |
| endValue | back to summary |
|---|---|
| private final Object endValue | |
| interpolator | back to summary |
|---|---|
| private final Interpolator interpolator | |
| target | back to summary |
|---|---|
| private final WritableValue<?> target | |
| type | back to summary |
|---|---|
| private final KeyValueType type | |
| KeyValue | back to summary |
|---|---|
| public <T> KeyValue(WritableValue<T> target, T endValue, Interpolator interpolator) Creates a
| |
| KeyValue | back to summary |
|---|---|
| public <T> KeyValue(WritableValue<T> target, T endValue) Creates a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether some other object is "equal to" this one.
Two
| |
| getEndValue | back to summary |
|---|---|
| public Object getEndValue() Returns the end value of this
| |
| getInterpolator | back to summary |
|---|---|
| public Interpolator getInterpolator()
| |
| getTarget | back to summary |
|---|---|
| public WritableValue Returns the target of this
| |
| getType | back to summary |
|---|---|
| pack-priv KeyValueType getType() | |
| 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 | |