//create the Interpolator by default interpolate //between (My space web page) x =

//create the Interpolator by default interpolate //between x = 0 and x = 1 Interpolator interpolator = new PositionInterpolator ( alpha, tg ); RotationInterpolator The RotationInterpolatorcan be used to linearly interpolate between two sets of axis angle rotations. The RotationInterpolatormodifies a TransformGroup, which will in turn affect the position of all its child Nodes. The TransformGroupmust have the ALLOW_TRANSFORM_WRITEcapability set. //create the Interpolator by default interpolate //between Y angle = 0 and Y angle = 2p Interpolator interpolator = new RotationInterpolator ( alpha, tg ); ScaleInterpolator The ScaleInterpolatorcan be used to linearly interpolate between two scale values for an axis. The ScaleInterpolatormodifies a TransformGroup, which will in turn affect the position of all its child Nodes. The TransformGroupmust have the ALLOW_TRANSFORM_WRITEcapability set. //create the Interpolator by default interpolate //between a uniform scale of 0 and 1 Interpolator interpolator = new ScaleInterpolator ( alpha, tg ); TransparencyInterpolator The TransparencyInterpolatorcan be used to linearly interpolate between two transparency values. The TransparencyInterpolatormodifies an Appearance s TransparencyAttributes. The TransparencyAttributesmust have the ALLOW_VALUE_WRITEcapability set. //create the TransparencyAttributes TransparencyAttributes transparency = new TransparencyAttributes(); //set the required capability bit transparency.setCapability( TransparencyAttributes.ALLOW_VALUE_WRITE ); //set the transparency mode transparency.setTransparencyMode( TransparencyAttributes.NICEST ); //assign the transparency to an Appearance app.setTransparencyAttributes( transparency ); //create the interpolator and interpolate //between 0 (opaque) and 0.8. Interpolator interpolator = new TransparencyInterpolator( alpha, app.getTransparencyAttributes(), RotPosScalePathInterpolator The RotPosScalePathInterpolatoris the most flexible of all the PathInterpolators. As its name suggests, it allows the rotation, position, and scale of a TransformGroupto be modified. Rotations, positions, and scales are specified at a series of Alpha values (or knots). The rotation, position, and scale defines a pose that, along with the time information, allows the Interpolatorto linearly interpolate between poses based on the Alpha value and the defined knots. 201
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply