All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.ScaleInterpolator

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.ScaleInterpolator

public class ScaleInterpolator
extends Interpolator
Scale interpolation behavior. This class constructs a behavior that varies the scale component of its target TransformGroup.


Constructor Index

 o ScaleInterpolator(Alpha, TransformGroup)
Constructs a trivial scale interpolator that varies its target transform using the specified alpha, using an identity matrix, a, minimum scale = 0.1f, and a maximum scale = 1.0f.
 o ScaleInterpolator(Alpha, TransformGroup, Transform3D, float, float)
Constructs a new scale interpolator that varies the target transform node among the two scale values.

Method Index

 o getMaximumScale()
Retrieve this Interpolator's maximumScale
 o getMinimumScale()
Retrieve this Interpolator's minimumScale
 o getTarget()
Retrieve this Interpolator's target reference
 o processStimulus(Enumeration)
The ScaleInterpolator Behavior
 o setMaximumScale(float)
Set the maximumScale for this Interpolator
 o setMinimumScale(float)
Set the minimumScale for this Interpolator
 o setTarget(TransformGroup)
Set the target for this Interpolator

Constructors

 o ScaleInterpolator
 public ScaleInterpolator(Alpha alpha,
                          TransformGroup target)
Constructs a trivial scale interpolator that varies its target transform using the specified alpha, using an identity matrix, a, minimum scale = 0.1f, and a maximum scale = 1.0f. node among the two scale values.

Parameters:
alpha - The alpha object for this interpolator
target - the transform node effected by this scaleInterpolator
 o ScaleInterpolator
 public ScaleInterpolator(Alpha alpha,
                          TransformGroup target,
                          Transform3D axisOfScale,
                          float minimumScale,
                          float maximumScale)
Constructs a new scale interpolator that varies the target transform node among the two scale values.

Parameters:
alpha - The alpha object for this interpolator
target - the transform node effected by this scaleInterpolator
axisOfScale - the transform that take axis of scale and make it coincide with the Z axis
minimumScale - the starting scale
maximumScale - the ending scale

Methods

 o setMinimumScale
 public void setMinimumScale(float scale)
Set the minimumScale for this Interpolator

Parameters:
scale - The new minimal scale
 o getMinimumScale
 public float getMinimumScale()
Retrieve this Interpolator's minimumScale

Returns:
the interpolator's minimal scale value
 o setMaximumScale
 public void setMaximumScale(float scale)
Set the maximumScale for this Interpolator

Parameters:
scale - The new maximal scale
 o getMaximumScale
 public float getMaximumScale()
Retrieve this Interpolator's maximumScale

Returns:
the interpolator's maximal scale 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 ScaleInterpolator 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