APIdia Launch Partner
Top Constructors Methods
com.sun.scenario.animation.shared

public abstract Class ClipInterpolator

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.scenario.animation.shared.GeneralClipInterpolator, com.sun.scenario.animation.shared.SimpleClipInterpolator
Imports
javafx.animation.KeyFrame, javafx.util.Duration

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static ClipInterpolator
create(KeyFrame[] keyFrames, long[] keyFrameTicks)

pack-priv static int

Returns:

The "real" number of key frames
getRealKeyFrameCount
(KeyFrame[]
The key frames. Must not be null.
keyFrames
)

Figures out the number of "real" key frames.

pack-priv abstract void
interpolate(long ticks)

pack-priv abstract ClipInterpolator

Returns:

The ClipInterpolator implementation to use after changing the keyframes.
setKeyFrames
(KeyFrame[]
The new sorted array of keyframes of this clip
keyFrames
,
long[]
tick duration of corresponding keyFrames
keyFrameTicks
)

Changes the keyframes.

pack-priv abstract void
validate(boolean forceSync)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ClipInterpolatorback to summary
public ClipInterpolator()

Method Detail

createback to summary
pack-priv static ClipInterpolator create(KeyFrame[] keyFrames, long[] keyFrameTicks)
getRealKeyFrameCountback to summary
pack-priv static int getRealKeyFrameCount(KeyFrame[] keyFrames)

Figures out the number of "real" key frames. The user may not have specified the "zero" key frame, in which case we end up inferring an additional zero key frame on the array.

Parameters
keyFrames:KeyFrame[]

The key frames. Must not be null.

Returns:int

The "real" number of key frames

interpolateback to summary
pack-priv abstract void interpolate(long ticks)
setKeyFramesback to summary
pack-priv abstract ClipInterpolator setKeyFrames(KeyFrame[] keyFrames, long[] keyFrameTicks)

Changes the keyframes. The optimal implementation for the new keyFrames might be different. For this reason, setKeyFrames returns a ClipInterpolator implementation with the updated values. This can either be the same object or a newly created one.

Parameters
keyFrames:KeyFrame[]

The new sorted array of keyframes of this clip

keyFrameTicks:long[]

tick duration of corresponding keyFrames

Returns:ClipInterpolator

The ClipInterpolator implementation to use after changing the keyframes.

validateback to summary
pack-priv abstract void validate(boolean forceSync)