| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.Node javax.media.j3d.Leaf javax.media.j3d.Behavior javax.media.j3d.Interpolator
All known Subclasses: javax.media.j3d.TransparencyInterpolator, javax.media.j3d.TransformInterpolator, javax.media.j3d.SwitchValueInterpolator, javax.media.j3d.ColorInterpolator, com.sun.j3d.loaders.lw3d.FloatValueInterpolator,
Interpolator | abstract public class Interpolator extends Behavior (Code) | | Interpolator is an abstract class that extends Behavior to provide
common methods used by various interpolation subclasses. These
include methods to convert a time value into an alpha value (A
value in the range 0 to 1) and a method to initialize the behavior.
Subclasses provide the methods that convert alpha values into
values within that subclass' output range.
|
Constructor Summary | |
public | Interpolator() Constructs an Interpolator node with a null alpha value. | public | Interpolator(Alpha alpha) Constructs an Interpolator node with the specified alpha value. |
Method Summary | |
void | duplicateAttributes(Node originalNode, boolean forceDuplicate) Copies all Interpolator information from
originalNode into
the current node. | public Alpha | getAlpha() Retrieves this interpolator's alpha object. | public void | initialize() This is the default Interpolator behavior initialization routine. | public void | setAlpha(Alpha alpha) Set this interpolator's alpha to the specified alpha object.
Parameters: alpha - the new alpha object. |
defaultWakeupCriterion | protected WakeupCriterion defaultWakeupCriterion(Code) | | Default WakeupCondition for all interpolators. The
wakeupOn method of Behavior, which takes a WakeupCondition as
the method parameter, will need to be called at the end
of the processStimulus method of any class that subclasses
Interpolator; this can be done with the following method call:
wakeupOn(defaultWakeupCriterion).
|
Interpolator | public Interpolator()(Code) | | Constructs an Interpolator node with a null alpha value.
|
Interpolator | public Interpolator(Alpha alpha)(Code) | | Constructs an Interpolator node with the specified alpha value.
Parameters: alpha - the alpha object used by this interpolator.If it is null, then this interpolator will not run. |
duplicateAttributes | void duplicateAttributes(Node originalNode, boolean forceDuplicate)(Code) | | Copies all Interpolator information from
originalNode into
the current node. This method is called from the
cloneNode method which is, in turn, called by the
cloneTree method.
Parameters: originalNode - the original node to duplicate. Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. exception: RestrictedAccessException - if this object is part of a liveor compiled scenegraph. See Also: Node.duplicateNode See Also: Node.cloneTree See Also: NodeComponent.setDuplicateOnCloneTree |
getAlpha | public Alpha getAlpha()(Code) | | Retrieves this interpolator's alpha object.
this interpolator's alpha object |
initialize | public void initialize()(Code) | | This is the default Interpolator behavior initialization routine.
It schedules the behavior to awaken at the next frame.
|
setAlpha | public void setAlpha(Alpha alpha)(Code) | | Set this interpolator's alpha to the specified alpha object.
Parameters: alpha - the new alpha object. If set to null,then this interpolator will stop running. |
|
|