All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.Behavior

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.Node
                   |
                   +----java.media.j3d.Leaf
                           |
                           +----java.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 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index