All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.PositionInterpolator

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.Node
                   |
                   +----java.media.j3d.Leaf
                           |
                           +----java.media.j3d.Behavior
                                   |
                                   +----java.media.j3d.Interpolator
                                           |
                                           +----java.media.j3d.PositionInterpolator

public class PositionInterpolator
extends Interpolator
Position interpolation behavior. This class constructs a behavior that varies the translation component of its target TransformGroup.


Constructor Index

 o PositionInterpolator(Alpha, TransformGroup)
Constructs a trivial position interpolator with a specified target, an axisOfTranslation set to Identity, a startPosition of 0.0f, and an endPosition of 1.0f.
 o PositionInterpolator(Alpha, TransformGroup, Transform3D, float, float)
Constructs a new position interpolator that varies the target transform node's translation component.

Method Index

 o getEndPosition(float)
Retrieve this Interpolator's endPosition
 o getStartPosition()
Retrieve this Interpolator's startPosition
 o getTarget()
Retrieve this Interpolator's target reference
 o processStimulus(Enumeration)
The PositionInterpolator Behavior
 o setEndPosition(float)
Set the endPosition for this Interpolator
 o setStartPosition(float)
Set the startPosition for this Interpolator
 o setTarget(TransformGroup)
Set the target for this Interpolator

Constructors

 o PositionInterpolator
 public PositionInterpolator(Alpha alpha,
                             TransformGroup target)
Constructs a trivial position interpolator with a specified target, an axisOfTranslation set to Identity, a startPosition of 0.0f, and an endPosition of 1.0f.

Parameters:
alpha - The alpha object for this Interpolator
target - The target for this position Interpolator
 o PositionInterpolator
 public PositionInterpolator(Alpha alpha,
                             TransformGroup target,
                             Transform3D axisOfTranslation,
                             float startPosition,
                             float endPosition)
Constructs a new position interpolator that varies the target transform node's translation component.

Parameters:
alpha - The alpha object dor this interpolator
target - the transform node effected by this positionInterpolator
axisOfTranslation - the transform that take axis of translation and make it coincide with the Z axis
startPosition - the starting position
endPosition - the ending position

Methods

 o setStartPosition
 public void setStartPosition(float position)
Set the startPosition for this Interpolator

Parameters:
position - The new start position
 o getStartPosition
 public float getStartPosition()
Retrieve this Interpolator's startPosition

Returns:
the interpolator's start position value
 o setEndPosition
 public void setEndPosition(float position)
Set the endPosition for this Interpolator

Parameters:
position - The new end position
 o getEndPosition
 public float getEndPosition(float position)
Retrieve this Interpolator's endPosition

Returns:
the interpolator's end position vslue
 o setTarget
 public void setTarget(TransformGroup target)
Set the target for this Interpolator

Parameters:
target - The target material
 o getTarget
 public TransformGroup getTarget()
Retrieve this Interpolator's target reference

Returns:
the Interpolator's target material
 o processStimulus
 public void processStimulus(Enumeration criteria)
The PositionInterpolator Behavior

Parameters:
criteria - an enumeration of the criteria that caused the stimulus
Overrides:
processStimulus in class Behavior

All Packages  Class Hierarchy  This Package  Previous  Next  Index