javax.media.j3d
Class WakeupOnTransformChange

java.lang.Object
  extended by javax.media.j3d.WakeupCondition
      extended by javax.media.j3d.WakeupCriterion
          extended by javax.media.j3d.WakeupOnTransformChange

public final class WakeupOnTransformChange
extends WakeupCriterion

Class specifying a wakeup when the transform within a specified TransformGroup changes


Field Summary
(package private) static int COND_IN_BS_LIST
           
(package private) static int TOTAL_INDEXED_UNORDER_SET_TYPES
           
(package private)  TransformGroupRetained transform
           
 
Fields inherited from class javax.media.j3d.WakeupCriterion
triggered
 
Fields inherited from class javax.media.j3d.WakeupCondition
ALL_ELEMENTS, allEnum, behav, conditionMet, id, listIdx, parent, trigEnum, TRIGGERED_ELEMENTS
 
Constructor Summary
WakeupOnTransformChange(TransformGroup node)
          Constructs a new WakeupOnTransformChange criterion.
 
Method Summary
(package private)  void addBehaviorCondition(BehaviorStructure bs)
          This is a callback from BehaviorStructure.
 TransformGroup getTransformGroup()
          Returns the TransformGroup node used in creating this WakeupCriterion
(package private)  void removeBehaviorCondition(BehaviorStructure bs)
          This is a callback from BehaviorStructure.
(package private)  void resetBehaviorCondition(BehaviorStructure bs)
          Perform task in addBehaviorCondition() that has to be set every time the condition met.
 
Methods inherited from class javax.media.j3d.WakeupCriterion
buildTree, cleanTree, hasTriggered, resetTree, setTriggered
 
Methods inherited from class javax.media.j3d.WakeupCondition
allElements, reInsertElapseTimeCond, setConditionMet, triggeredElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COND_IN_BS_LIST

static final int COND_IN_BS_LIST
See Also:
Constant Field Values

TOTAL_INDEXED_UNORDER_SET_TYPES

static final int TOTAL_INDEXED_UNORDER_SET_TYPES
See Also:
Constant Field Values

transform

TransformGroupRetained transform
Constructor Detail

WakeupOnTransformChange

public WakeupOnTransformChange(TransformGroup node)
Constructs a new WakeupOnTransformChange criterion.

Parameters:
node - the TransformGroup node that will trigger a wakeup if its transform is modified
Method Detail

getTransformGroup

public TransformGroup getTransformGroup()
Returns the TransformGroup node used in creating this WakeupCriterion

Returns:
the TransformGroup used in this criterion's construction

addBehaviorCondition

void addBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure. It is used to add wakeupCondition to behavior structure.

Specified by:
addBehaviorCondition in class WakeupCriterion

removeBehaviorCondition

void removeBehaviorCondition(BehaviorStructure bs)
This is a callback from BehaviorStructure. It is used to remove wakeupCondition from behavior structure.

Specified by:
removeBehaviorCondition in class WakeupCriterion

resetBehaviorCondition

void resetBehaviorCondition(BehaviorStructure bs)
Perform task in addBehaviorCondition() that has to be set every time the condition met.

Specified by:
resetBehaviorCondition in class WakeupCriterion


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.