Java Doc for WakeupOnElapsedFrames.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » javax.media.j3d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.j3d.WakeupCondition
      javax.media.j3d.WakeupCriterion
         javax.media.j3d.WakeupOnElapsedFrames

WakeupOnElapsedFrames
final public class WakeupOnElapsedFrames extends WakeupCriterion (Code)
Class specifying a wakeup when a specific number of frames have elapsed. The wakeup criterion can either be passive or non-passive. If any behavior uses a non-passive WakeupOnElapsedFrames, the rendering system will run continuously.

In general, applications cannot count on behavior execution being synchronized with rendering. Behaviors that use WakeupOnElapsedFrames with a frame count of 0 are an exception to this general rule. Such behaviors will be executed every frame. Further, all modifications to scene graph objects (not including geometry by-reference or texture by-reference) made from the processStimulus methods of such behaviors are guaranteed to take effect in the same rendering frame.



Field Summary
final static  intCOND_IN_BS_LIST
    
final static  intTOTAL_INDEXED_UNORDER_SET_TYPES
    
 intcountdown
    
 intframeCount
    
 booleanpassive
    

Constructor Summary
public  WakeupOnElapsedFrames(int frameCount)
     Constructs a non-passive WakeupOnElapsedFrames criterion.
public  WakeupOnElapsedFrames(int frameCount, boolean passive)
     Constructs a WakeupOnElapsedFrames criterion.

Method Summary
 voidaddBehaviorCondition(BehaviorStructure bs)
     This is a callback from BehaviorStructure.
public  intgetElapsedFrameCount()
     Retrieves the elapsed frame count that was used when constructing this object.
public  booleanisPassive()
     Retrieves the state of the passive flag that was used when constructing this object.
 voidnewFrame()
    
 voidremoveBehaviorCondition(BehaviorStructure bs)
     This is a callback from BehaviorStructure.
 voidresetBehaviorCondition(BehaviorStructure bs)
     Perform task in addBehaviorCondition() that has to be set every time the condition met.

Field Detail
COND_IN_BS_LIST
final static int COND_IN_BS_LIST(Code)



TOTAL_INDEXED_UNORDER_SET_TYPES
final static int TOTAL_INDEXED_UNORDER_SET_TYPES(Code)



countdown
int countdown(Code)



frameCount
int frameCount(Code)



passive
boolean passive(Code)




Constructor Detail
WakeupOnElapsedFrames
public WakeupOnElapsedFrames(int frameCount)(Code)
Constructs a non-passive WakeupOnElapsedFrames criterion.
Parameters:
  frameCount - the number of frames that Java 3D should drawbefore awakening this behavior object; a value of N meanswakeup at the end of frame N, where the current frame is zero,a value of zero means wakeup at the end of the current frame.
exception:
  IllegalArgumentException - if frameCount is less than zero



WakeupOnElapsedFrames
public WakeupOnElapsedFrames(int frameCount, boolean passive)(Code)
Constructs a WakeupOnElapsedFrames criterion.
Parameters:
  frameCount - the number of frames that Java 3D should drawbefore awakening this behavior object; a value of N meanswakeup at the end of frame N, where the current frame is zero,a value of zero means wakeup at the end of the current frame.
Parameters:
  passive - flag indicating whether this behavior ispassive; a non-passive behavior will cause the rendering systemto run continuously, while a passive behavior will only runwhen some other event causes a frame to be run.
exception:
  IllegalArgumentException - if frameCount is less than zero
since:
   Java 3D 1.2




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



getElapsedFrameCount
public int getElapsedFrameCount()(Code)
Retrieves the elapsed frame count that was used when constructing this object. the elapsed frame count specified when constructingthis object



isPassive
public boolean isPassive()(Code)
Retrieves the state of the passive flag that was used when constructing this object. true if this wakeup criterion is passive, false otherwise
since:
   Java 3D 1.2



newFrame
void newFrame()(Code)
decrement the frame count, and set trigger if 0



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



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



Fields inherited from javax.media.j3d.WakeupCriterion
boolean triggered(Code)(Java Doc)

Methods inherited from javax.media.j3d.WakeupCriterion
abstract void addBehaviorCondition(BehaviorStructure bs)(Code)(Java Doc)
void buildTree(WakeupCondition parent, int id, BehaviorRetained b)(Code)(Java Doc)
void cleanTree(BehaviorStructure bs)(Code)(Java Doc)
public boolean hasTriggered()(Code)(Java Doc)
abstract void removeBehaviorCondition(BehaviorStructure bs)(Code)(Java Doc)
abstract void resetBehaviorCondition(BehaviorStructure bs)(Code)(Java Doc)
void resetTree()(Code)(Java Doc)
void setTriggered()(Code)(Java Doc)

Fields inherited from javax.media.j3d.WakeupCondition
final static int ALL_ELEMENTS(Code)(Java Doc)
final static int TRIGGERED_ELEMENTS(Code)(Java Doc)
WakeupCriteriaEnumerator allEnum(Code)(Java Doc)
BehaviorRetained behav(Code)(Java Doc)
boolean conditionMet(Code)(Java Doc)
int id(Code)(Java Doc)
int listIdx(Code)(Java Doc)
WakeupCondition parent(Code)(Java Doc)
WakeupCriteriaEnumerator trigEnum(Code)(Java Doc)

Methods inherited from javax.media.j3d.WakeupCondition
public Enumeration allElements()(Code)(Java Doc)
void buildTree(WakeupCondition parent, int id, BehaviorRetained b)(Code)(Java Doc)
void cleanTree(BehaviorStructure bs)(Code)(Java Doc)
void reInsertElapseTimeCond()(Code)(Java Doc)
void resetTree()(Code)(Java Doc)
void setConditionMet(int id, Boolean checkSchedulingRegion)(Code)(Java Doc)
public Enumeration triggeredElements()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.