All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.SwitchValueInterpolator

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

public class SwitchValueInterpolator
extends Interpolator
Switch statement interpolation behavior. This class constructs a behavior that cycles the child selector of a SwitchNode.


Constructor Index

 o SwitchValueInterpolator(Alpha, Switch)
Constructs a trivial SwitchValueInterpolator that varies the target Switch node's child index between zero and the number of children specified in the node.
 o SwitchValueInterpolator(Alpha, Switch, int, int)
Constructs a new SwitchValueInterpolator that varies the target Switch node's child index between the two values provided.

Method Index

 o getFirstChildIndex()
Retrieve this Interpolator's firstChildIndex
 o getLastChildIndex()
Retrieve this Interpolator's lastSwitchIndex
 o getTarget()
Retrieve this Interpolator's target reference
 o processStimulus(Enumeration)
The SwitchValueInterpolator Behavior
 o setFirstChildIndex(int)
Set the firstChildIndex for this Interpolator
 o setLastChildIndex(int)
Set the lastChildIndex for this Interpolator
 o setTarget(Switch)
Set the target for this Interpolator

Constructors

 o SwitchValueInterpolator
 public SwitchValueInterpolator(Alpha alpha,
                                Switch target)
Constructs a trivial SwitchValueInterpolator that varies the target Switch node's child index between zero and the number of children specified in the node.

Parameters:
alpha - The alpha object for this interpolator
target - the Switch node affected by this SwitchValueInterpolator
firstChildIndex - the index of first children in the Switch node to select.
lastChildIndex - the index of last children in the Switch node to select.
 o SwitchValueInterpolator
 public SwitchValueInterpolator(Alpha alpha,
                                Switch target,
                                int firstChildIndex,
                                int lastChildIndex)
Constructs a new SwitchValueInterpolator that varies the target Switch node's child index between the two values provided.

Parameters:
alpha - The alpha object for this interpolator
target - the Switch node affected by this SwitchValueInterpolator
firstChildIndex - the index of first children in the Switch node to select.
lastChildIndex - the index of last children in the Switch node to select.

Methods

 o setFirstChildIndex
 public void setFirstChildIndex(int firstIndex)
Set the firstChildIndex for this Interpolator

Parameters:
firstIndex - The new index for the first child
 o getFirstChildIndex
 public int getFirstChildIndex()
Retrieve this Interpolator's firstChildIndex

Returns:
the interpolator's minimal scale value
 o setLastChildIndex
 public void setLastChildIndex(int lastIndex)
Set the lastChildIndex for this Interpolator

Parameters:
lastIndex - The new index for the last child
 o getLastChildIndex
 public int getLastChildIndex()
Retrieve this Interpolator's lastSwitchIndex

Returns:
the interpolator's maximal scale vslue
 o setTarget
 public void setTarget(Switch target)
Set the target for this Interpolator

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

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

Parameters:
criteria - An enumeration of WakeupCriterion that have triggered.
Overrides:
processStimulus in class Behavior

All Packages  Class Hierarchy  This Package  Previous  Next  Index