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.
-
Behavior()
-
-
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
All Packages Class Hierarchy This Package Previous Next Index