All Packages Class Hierarchy This Package Previous Next Index
Class javax.media.j3d.Behavior
java.lang.Object
|
+----javax.media.j3d.SceneGraphObject
|
+----javax.media.j3d.Node
|
+----javax.media.j3d.Leaf
|
+----javax.media.j3d.Behavior
- public abstract class Behavior
- extends Leaf
Behavior is an abstract class that contains the framework for all
behavioral components in Java 3D.
-
Behavior()
-
-
duplicateNode(Node, boolean)
- Copies all node information from
originalNode
into
the current node.
-
getSchedulingBoundingLeaf()
-
Retrieves the Behavior node's scheduling bounding leaf.
-
getSchedulingBounds()
-
Retrieves the Behavior node's scheduling bounds.
-
initialize()
- Initialize this behavior.
-
postId(int)
- Post the specified Id.
-
processStimulus(Enumeration)
- Process a stimulus meant for this behavior.
-
setSchedulingBoundingLeaf(BoundingLeaf)
- Set the Behavior's scheduling region to the specified bounding leaf.
-
setSchedulingBounds(Bounds)
- Set the Behavior's scheduling region to the specified bounds.
-
wakeupOn(WakeupCondition)
- Defines this behavior's wakeup criteria.
Behavior
public Behavior()
initialize
public abstract void initialize()
- Initialize this behavior. Classes that extend Behavior must
provide their own initialize method.
processStimulus
public abstract void processStimulus(Enumeration criteria)
- Process a stimulus meant for this behavior. This method is invoked
if the Behavior's wakeup criteria are satisfied and the ViewPlatform's
activation region intersect with the Behavior's scheduling region.
Classes that extend Behavior must provide their own processStimulus
method.
- Parameters:
- criteria - an enumeration of triggered wakeup criteria for this
behavior
setSchedulingBounds
public final void setSchedulingBounds(Bounds region)
- Set the Behavior's scheduling region to the specified bounds.
This is used when the scheduling bounding leaf is set to null.
- Parameters:
- region - the bounds that contains the Behavior's new scheduling
region.
getSchedulingBounds
public final Bounds getSchedulingBounds()
- Retrieves the Behavior node's scheduling bounds.
- Returns:
- this Behavior's scheduling bounds information
setSchedulingBoundingLeaf
public final void setSchedulingBoundingLeaf(BoundingLeaf region)
- Set the Behavior's scheduling region to the specified bounding leaf.
When set to a value other than null, this overrides the scheduling
bounds object.
- Parameters:
- region - the bounding leaf node used to specify the Behavior
node's new scheduling region.
getSchedulingBoundingLeaf
public final BoundingLeaf getSchedulingBoundingLeaf()
- Retrieves the Behavior node's scheduling bounding leaf.
- Returns:
- this Behavior's scheduling bounding leaf information
wakeupOn
public void wakeupOn(WakeupCondition criteria)
- Defines this behavior's wakeup criteria.
- Parameters:
- criteria - the wakeup criteria for this behavior
postId
public void postId(int postId)
- Post the specified Id. Behaviors use this method to cause sequential
scheduling of other behavior object.
- Parameters:
- postId - The Id being posted
duplicateNode
public void duplicateNode(Node originalNode,
boolean forceDuplicate)
- Copies all node information from
originalNode
into
the current node. This method is called from the
cloneNode
method which is, in turn, called by the
cloneTree
method.
For any NodeComponent objects
contained by the object being duplicated, each NodeComponent
object's duplicateOnCloneTree
value is used to determine
whether the NodeComponent should be duplicated in the new node
or if just a reference to the current node should be placed in the
new node. This flag can be overridden by setting the
forceDuplicate
parameter in the cloneTree
method to true
.
- Parameters:
- originalNode - the original node to duplicate.
- forceDuplicate - when set to
true
, causes the
duplicateOnCloneTree
flag to be ignored. When
false
, the value of each node's
duplicateOnCloneTree
variable determines whether
NodeComponent data is duplicated or copied.
- Overrides:
- duplicateNode in class Node
- See Also:
- cloneTree, cloneNode, setDuplicateOnCloneTree
All Packages Class Hierarchy This Package Previous Next Index