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.
-
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.
-
SwitchValueInterpolator(Alpha, Switch, int, int)
- Constructs a new SwitchValueInterpolator that varies the target
Switch node's child index between the two values provided.
-
getFirstChildIndex()
- Retrieve this Interpolator's firstChildIndex
-
getLastChildIndex()
- Retrieve this Interpolator's lastSwitchIndex
-
getTarget()
- Retrieve this Interpolator's target reference
-
processStimulus(Enumeration)
- The SwitchValueInterpolator Behavior
-
setFirstChildIndex(int)
- Set the firstChildIndex for this Interpolator
-
setLastChildIndex(int)
- Set the lastChildIndex for this Interpolator
-
setTarget(Switch)
- Set the target for this Interpolator
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.
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.
setFirstChildIndex
public void setFirstChildIndex(int firstIndex)
- Set the firstChildIndex for this Interpolator
- Parameters:
- firstIndex - The new index for the first child
getFirstChildIndex
public int getFirstChildIndex()
- Retrieve this Interpolator's firstChildIndex
- Returns:
- the interpolator's minimal scale value
setLastChildIndex
public void setLastChildIndex(int lastIndex)
- Set the lastChildIndex for this Interpolator
- Parameters:
- lastIndex - The new index for the last child
getLastChildIndex
public int getLastChildIndex()
- Retrieve this Interpolator's lastSwitchIndex
- Returns:
- the interpolator's maximal scale vslue
setTarget
public void setTarget(Switch target)
- Set the target for this Interpolator
- Parameters:
- target - The target switch
getTarget
public Switch getTarget()
- Retrieve this Interpolator's target reference
- Returns:
- the Interpolator's target switch
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