Java Doc for ViewPlatformAWTBehavior.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » utils » behaviors » vp » 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 » com.sun.j3d.utils.behaviors.vp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior
   com.sun.j3d.utils.behaviors.vp.ViewPlatformAWTBehavior

All known Subclasses:   org.jdesktop.j3dfly.utils.vpbehaviors.VPCollisionBehavior,  org.jdesktop.j3dfly.utils.vpbehaviors.KeyNavigatorBehavior,  com.sun.j3d.utils.behaviors.vp.OrbitBehavior,
ViewPlatformAWTBehavior
abstract public class ViewPlatformAWTBehavior extends ViewPlatformBehavior implements MouseListener,MouseMotionListener,KeyListener,MouseWheelListener(Code)
Abstract class which implements much of the event tracking and state updating in a thread safe manner. AWT Events are captured and placed in a queue. While there are pending events or motion the behavior will wake up every frame, call processAWTEvents and integrateTransforms.
since:
   Java 3D 1.2.1


Field Summary
final public static  intKEY_LISTENER
    
final public static  intMOUSE_LISTENER
    
final public static  intMOUSE_MOTION_LISTENER
    
final public static  intMOUSE_WHEEL_LISTENER
    
final protected static  intPOST_ID
    
protected  Canvas3Dcanvases
    
protected  WakeupOnElapsedFramesframeWakeup
    
protected  booleanmotion
    
protected  WakeupOnBehaviorPostpostWakeup
    
protected  Transform3DtargetTransform
    

Constructor Summary
protected  ViewPlatformAWTBehavior()
     Parameterless constructor for this behavior, intended for use by subclasses instantiated through ConfiguredUniverse.
protected  ViewPlatformAWTBehavior(int listenerFlags)
     Construct a behavior which listens for events specified by the given flags, intended for use by subclasses instantiated through ConfiguredUniverse.
public  ViewPlatformAWTBehavior(Canvas3D c, int listenerFlags)
     Constructs a new ViewPlatformAWTBehavior.
Parameters:
  c - The Canvas3D on which to listen for events.

Method Summary
public  voidinitialize()
     Initializes the behavior. NOTE: Applications should not call this method.
abstract protected  voidintegrateTransforms()
    
public  voidkeyPressed(java.awt.event.KeyEvent e)
    
public  voidkeyReleased(java.awt.event.KeyEvent e)
    
public  voidkeyTyped(java.awt.event.KeyEvent e)
    
public  voidmouseClicked(MouseEvent e)
    
public  voidmouseDragged(MouseEvent e)
    
public  voidmouseEntered(MouseEvent e)
    
public  voidmouseExited(MouseEvent e)
    
public  voidmouseMoved(MouseEvent e)
    
public  voidmousePressed(MouseEvent e)
    
public  voidmouseReleased(MouseEvent e)
    
public  voidmouseWheelMoved(java.awt.event.MouseWheelEvent e)
    
abstract protected  voidprocessAWTEvents(java.awt.AWTEvent[] events)
     This is called once per frame if there are any AWT events to process. The motion variable will be true when the method is called.
public  voidprocessStimulus(java.util.Enumeration behEnum)
     Process a stimulus meant for this behavior.
protected  voidqueueAWTEvent(AWTEvent e)
     Queue AWTEvents in a thread safe manner.
public  voidsetEnable(boolean state)
     Overload setEnable from Behavior.
protected  voidsetListenerFlags(int listenerFlags)
     Sets listener flags for this behavior.
public  voidsetViewingPlatform(ViewingPlatform vp)
     Sets the ViewingPlatform for this behavior.

Field Detail
KEY_LISTENER
final public static int KEY_LISTENER(Code)
Flag indicating Behavior should listen for Key Events



MOUSE_LISTENER
final public static int MOUSE_LISTENER(Code)
Flag indicating Behavior should listen for Mouse Events



MOUSE_MOTION_LISTENER
final public static int MOUSE_MOTION_LISTENER(Code)
Flag indicating Behavior should listen for Mouse Motion Events



MOUSE_WHEEL_LISTENER
final public static int MOUSE_WHEEL_LISTENER(Code)
Flag indicating Behavior should listen for MouseWheel Events



POST_ID
final protected static int POST_ID(Code)
Behavior PostId used in this behavior



canvases
protected Canvas3D canvases(Code)
The Canvas3Ds from which this Behavior gets AWT events



frameWakeup
protected WakeupOnElapsedFrames frameWakeup(Code)
The different criterion for the behavior to wakeup



motion
protected boolean motion(Code)
Boolean for whether the mouse is in motion



postWakeup
protected WakeupOnBehaviorPost postWakeup(Code)
The Or of the different criterion for the behavior to wakeup



targetTransform
protected Transform3D targetTransform(Code)
The target Transform3D for this behavior




Constructor Detail
ViewPlatformAWTBehavior
protected ViewPlatformAWTBehavior()(Code)
Parameterless constructor for this behavior, intended for use by subclasses instantiated through ConfiguredUniverse. Such a constructor is required for configurable behaviors.
since:
   Java 3D 1.3



ViewPlatformAWTBehavior
protected ViewPlatformAWTBehavior(int listenerFlags)(Code)
Construct a behavior which listens for events specified by the given flags, intended for use by subclasses instantiated through ConfiguredUniverse.
Parameters:
  listenerFlags - Indicates which listener should be registered,one or more of MOUSE_LISTENER, MOUSE_MOTION_LISTENER, KEY_LISTENER, MOUSE_WHEEL_LISTENER
since:
   Java 3D 1.3



ViewPlatformAWTBehavior
public ViewPlatformAWTBehavior(Canvas3D c, int listenerFlags)(Code)
Constructs a new ViewPlatformAWTBehavior.
Parameters:
  c - The Canvas3D on which to listen for events. If this is null aNullPointerException will be thrown.
Parameters:
  listenerFlags - Indicates which listener should be registered,one or more of MOUSE_LISTENER, MOUSE_MOTION_LISTENER, KEY_LISTENER, MOUSE_WHEEL_LISTENER




Method Detail
initialize
public void initialize()(Code)
Initializes the behavior. NOTE: Applications should not call this method. It is called by the Java 3D behavior scheduler.



integrateTransforms
abstract protected void integrateTransforms()(Code)
Called once per frame (if the view is moving) to calculate the new view platform transform



keyPressed
public void keyPressed(java.awt.event.KeyEvent e)(Code)



keyReleased
public void keyReleased(java.awt.event.KeyEvent e)(Code)



keyTyped
public void keyTyped(java.awt.event.KeyEvent e)(Code)



mouseClicked
public void mouseClicked(MouseEvent e)(Code)



mouseDragged
public void mouseDragged(MouseEvent e)(Code)



mouseEntered
public void mouseEntered(MouseEvent e)(Code)



mouseExited
public void mouseExited(MouseEvent e)(Code)



mouseMoved
public void mouseMoved(MouseEvent e)(Code)



mousePressed
public void mousePressed(MouseEvent e)(Code)



mouseReleased
public void mouseReleased(MouseEvent e)(Code)



mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)(Code)



processAWTEvents
abstract protected void processAWTEvents(java.awt.AWTEvent[] events)(Code)
This is called once per frame if there are any AWT events to process. The motion variable will be true when the method is called. If it is true when the method returns integrateTransforms will be called immediately. The AWTEvents are presented in the array in the order in which they arrived from AWT.



processStimulus
public void processStimulus(java.util.Enumeration behEnum)(Code)
Process a stimulus meant for this behavior. NOTE: Applications should not call this method. It is called by the Java 3D behavior scheduler.



queueAWTEvent
protected void queueAWTEvent(AWTEvent e)(Code)
Queue AWTEvents in a thread safe manner. If subclasses override this method they must call super.queueAWTEvent(e)



setEnable
public void setEnable(boolean state)(Code)
Overload setEnable from Behavior. Adds/Removes the AWT listeners depending on the requested state.



setListenerFlags
protected void setListenerFlags(int listenerFlags)(Code)
Sets listener flags for this behavior.
Parameters:
  listenerFlags - Indicates which listener should be registered,one or more of MOUSE_LISTENER, MOUSE_MOTION_LISTENER, KEY_LISTENER, MOUSE_WHEEL_LISTENER
since:
   Java 3D 1.3



setViewingPlatform
public void setViewingPlatform(ViewingPlatform vp)(Code)
Sets the ViewingPlatform for this behavior. This method is called by the ViewingPlatform. If a sub-calls overrides this method, it must call super.setViewingPlatform(vp). NOTE: Applications should not call this method.



Fields inherited from com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior
protected Transform3D homeTransform(Code)(Java Doc)
protected TransformGroup targetTG(Code)(Java Doc)
protected ViewingPlatform vp(Code)(Java Doc)

Methods inherited from com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior
public void getHomeTransform(Transform3D home)(Code)(Java Doc)
public ViewingPlatform getViewingPlatform()(Code)(Java Doc)
public void goHome()(Code)(Java Doc)
public void setHomeTransform(Transform3D home)(Code)(Java Doc)
public void setViewingPlatform(ViewingPlatform vp)(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.