< Zurück | Inhalt | Weiter >

11.4 Overview of the built−in behaviors

There are 26 classes derived from Behavior in Java 3D. To describe each in detail is beyond the scope of this chapter. Please refer to the Sun API documentation for a description of each Behavior’s methods.

Interpolator, mouse, and keyboard Behaviors are described in more detail in subsequent sections. See table 11.1 for help in selecting an appropriate built−in Behavior for your application.

Behavior name



Description


Billboard



Aligns a TransformGroup relative to the Viewer

Interpolator



Abstract base class for all Interpolators


ColorInterpolator


Interpolates diffuse color of a Material



PathInterpolator


Abstract base class for all PathInterpolators (linear Interpolation)




PositionPathInterpolator,

Interpolates the translation of a TransformGroup along a path




RotationPathInterpolator

Interpolates the rotation of a TransformGroup along a path




RotPosPathInterpolator,

Interpolates the translation and rotation of a TransformGroup along a path




RotPosScalePathInterpolator

Interpolates the translation, rotation and scale of a TransformGroup along a path



PositionInterpolator


Interpolates the translation of a TransformGroup between two points



RotationInterpolator


Interpolates the rotation of a TransformGroup between two values



ScaleInterpolator


Interpolates the scale of a TransformGroup between two values

Table 11.1 Built−in behaviors





on mouse input



PickTranslateBehavior


Modifies the translation components of a picked TransformGroup based on mouse input



PickZoomBehavior


Modifies the scale components of a picked TransformGroup based on mouse input