![]() |
![]() |
![]() |
![]() |
429 |
TransformGroup myGroup = new TransformGroup( );
Alpha upRamp = new Alpha( );
upRamp.setIncreasingAlphaDuration( 10000 );
upRamp.setLoopCount( -1 ); // loop forever
RotationInterpolator mySpinner = new RotationInterpolator( upRamp, myGroup );
mySpinner.setAxisOfRotation( new Transform3D( ) );
mySpinner.setMinimumAngle( 0.0f );
mySpinner.setMaximumAngle( (float)(Math.PI * 2.0) );
mySpinner.setSchedulingBounds( bounds );
myGroup.addChild( spinner );