< Zurück | Inhalt | Weiter >


The ScaleInterpolator can be used to linearly interpolate between two scale values for an axis. The ScaleInterpolator modifies a TransformGroup, which will in turn affect the position of all its child Nodes. The TransformGroup must have the ALLOW_TRANSFORM_WRITE capability set.

//create the Interpolator—by default interpolate

//between a uniform scale of 0 and 1

Interpolator interpolator = new ScaleInterpolator ( alpha, tg );