Java Reference
In-Depth Information
Figure 5-3. Spline interpolator
By moving the sliders at the bottom of the screen, the control points can be relocated to create a
number of different curves. One considerable limitation of the spline is its inability to create curves that
extend beyond 1.0 or below 0.0. This limitation is a characteristic of the JavaFX API, not an inherent
limitation of splines in general.
Custom Interpolators
The default interpolators are a good start, but eventually a designer will want more control over the
animations. For example, the default set of interpolators provides no way of creating an animation that
extends beyond the start and end values. Creating an interpolator is very simple; creating an interpolator
that looks good is a bit more complex. The following section describes how to implement an interpolator
and provides a number of examples.
Search WWH ::




Custom Search