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.
-
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.
-
ScaleInterpolator(Alpha, TransformGroup, Transform3D, float, float)
- Constructs a new scale interpolator that varies the target transform
node among the two scale values.
-
getMaximumScale()
- Retrieve this Interpolator's maximumScale
-
getMinimumScale()
- Retrieve this Interpolator's minimumScale
-
getTarget()
- Retrieve this Interpolator's target reference
-
processStimulus(Enumeration)
- The ScaleInterpolator Behavior
-
setMaximumScale(float)
- Set the maximumScale for this Interpolator
-
setMinimumScale(float)
- Set the minimumScale for this Interpolator
-
setTarget(TransformGroup)
- Set the target for this Interpolator
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
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
setMinimumScale
public void setMinimumScale(float scale)
- Set the minimumScale for this Interpolator
- Parameters:
- scale - The new minimal scale
getMinimumScale
public float getMinimumScale()
- Retrieve this Interpolator's minimumScale
- Returns:
- the interpolator's minimal scale value
setMaximumScale
public void setMaximumScale(float scale)
- Set the maximumScale for this Interpolator
- Parameters:
- scale - The new maximal scale
getMaximumScale
public float getMaximumScale()
- Retrieve this Interpolator's maximumScale
- Returns:
- the interpolator's maximal scale vslue
setTarget
public void setTarget(TransformGroup target)
- Set the target for this Interpolator
- Parameters:
- target - The target material
getTarget
public TransformGroup getTarget()
- Retrieve this Interpolator's target reference
- Returns:
- the Interpolator's target material
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