Java Reference
In-Depth Information
don't want the last step to be the same as the first step. The code from Listing 5-10 creates the image in
Figure 5-10.
Figure 5-10. Clock with a second hand
Transition Example
Looking back at Chapter 3 we can see that transitions are a great place to use different interpolators.
Each of the transitions could be combined with an interpolator to make a large number of different
transitions with different feels. Figure 5-11 shows what some of these combinations look like. The source
code containing this example is in the package com.lj.jfxe.chapter5.transitions . A few of the
interpolators used in this example can represent lots of different transitions, such as the spline and
polynomial transitions. I have hard coded the default values to provide a talking point about a particular
Search WWH ::

Custom Search