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.


Constructor Index

 o Behavior()

Method Index

 o duplicateNode(Node, boolean)
Copies all node information from originalNode into the current node.
 o getSchedulingBoundingLeaf()
Retrieves the Behavior node's scheduling bounding leaf.
 o getSchedulingBounds()
Retrieves the Behavior node's scheduling bounds.
 o initialize()
Initialize this behavior.
 o postId(int)
Post the specified Id.
 o processStimulus(Enumeration)
Process a stimulus meant for this behavior.
 o setSchedulingBoundingLeaf(BoundingLeaf)
Set the Behavior's scheduling region to the specified bounding leaf.
 o setSchedulingBounds(Bounds)
Set the Behavior's scheduling region to the specified bounds.
 o wakeupOn(WakeupCondition)
Defines this behavior's wakeup criteria.

Constructors

 o Behavior
 public Behavior()

Methods

 o initialize
 public abstract void initialize()
Initialize this behavior. Classes that extend Behavior must provide their own initialize method.

 o 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
 o 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.
 o getSchedulingBounds
 public final Bounds getSchedulingBounds()
Retrieves the Behavior node's scheduling bounds.

Returns:
this Behavior's scheduling bounds information
 o 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.
 o getSchedulingBoundingLeaf
 public final BoundingLeaf getSchedulingBoundingLeaf()
Retrieves the Behavior node's scheduling bounding leaf.

Returns:
this Behavior's scheduling bounding leaf information
 o wakeupOn
 public void wakeupOn(WakeupCondition criteria)
Defines this behavior's wakeup criteria.

Parameters:
criteria - the wakeup criteria for this behavior
 o 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
 o 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