All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.ColorInterpolator
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.ColorInterpolator
- public class ColorInterpolator
- extends Interpolator
Color interpolation behavior. This class constructs a behavior
that varies the color component of its target material
-
ColorInterpolator(Alpha, Material)
- Constructs a trivial color interpolator with a specified target
a startColor of black, an end color of white.
-
ColorInterpolator(Alpha, Material, Color3f, Color3f)
- Constructs a new color interpolator that varies the target
material among the two color values.
-
getEndColor(Color3f)
- Retrieve this Interpolator's endColor
-
getStartColor(Color3f)
- Retrieve this Interpolator's startColor
-
getTarget()
- Retrieve this Interpolator's target reference
-
processStimulus(Enumeration)
- The ColorInterpolator Behavior
-
setEndColor(Color3f)
- Set the endColor for this Interpolator
-
setStartColor(Color3f)
- Set the startColor for this Interpolator
-
setTarget(Material)
- Set the target for this Interpolator
ColorInterpolator
public ColorInterpolator(Alpha alpha,
Material target)
- Constructs a trivial color interpolator with a specified target
a startColor of black, an end color of white.
- Parameters:
- alpha - The alpha object for this interpolator
- target - the material component object effected by this
color interpolator
ColorInterpolator
public ColorInterpolator(Alpha alpha,
Material target,
Color3f startColor,
Color3f endColor)
- Constructs a new color interpolator that varies the target
material among the two color values.
- Parameters:
- alpha - The alpha object for this interpolator
- target - the material component object effected by this
color Interpolator
- startColor - the starting color
- endColor - the ending color
setStartColor
public void setStartColor(Color3f color)
- Set the startColor for this Interpolator
- Parameters:
- color - The new start color
getStartColor
public void getStartColor(Color3f color)
- Retrieve this Interpolator's startColor
- Parameters:
- the - vector that will receive the interpolator's start color
setEndColor
public void setEndColor(Color3f color)
- Set the endColor for this Interpolator
- Parameters:
- color - The new end color
getEndColor
public void getEndColor(Color3f color)
- Retrieve this Interpolator's endColor
- Parameters:
- the - vector that will receive the interpolator's end color
setTarget
public void setTarget(Material target)
- Set the target for this Interpolator
- Parameters:
- target - The target material
getTarget
public Material getTarget()
- Retrieve this Interpolator's target reference
- Returns:
- the Interpolator's target material
processStimulus
public void processStimulus(Enumeration criteria)
- The ColorInterpolator 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