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


Constructor Index

 o ColorInterpolator(Alpha, Material)
Constructs a trivial color interpolator with a specified target a startColor of black, an end color of white.
 o ColorInterpolator(Alpha, Material, Color3f, Color3f)
Constructs a new color interpolator that varies the target material among the two color values.

Method Index

 o getEndColor(Color3f)
Retrieve this Interpolator's endColor
 o getStartColor(Color3f)
Retrieve this Interpolator's startColor
 o getTarget()
Retrieve this Interpolator's target reference
 o processStimulus(Enumeration)
The ColorInterpolator Behavior
 o setEndColor(Color3f)
Set the endColor for this Interpolator
 o setStartColor(Color3f)
Set the startColor for this Interpolator
 o setTarget(Material)
Set the target for this Interpolator

Constructors

 o 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
 o 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

Methods

 o setStartColor
 public void setStartColor(Color3f color)
Set the startColor for this Interpolator

Parameters:
color - The new start color
 o getStartColor
 public void getStartColor(Color3f color)
Retrieve this Interpolator's startColor

Parameters:
the - vector that will receive the interpolator's start color
 o setEndColor
 public void setEndColor(Color3f color)
Set the endColor for this Interpolator

Parameters:
color - The new end color
 o getEndColor
 public void getEndColor(Color3f color)
Retrieve this Interpolator's endColor

Parameters:
the - vector that will receive the interpolator's end color
 o setTarget
 public void setTarget(Material target)
Set the target for this Interpolator

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

Returns:
the Interpolator's target material
 o 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