Java Doc for ExtendedMouseRotate.java in  » 6.0-JDK-Modules » java-3d » ch » aecii » j3d » utils » 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 » ch.aecii.j3d.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.j3d.utils.behaviors.mouse.MouseBehavior
   ch.aecii.j3d.utils.ExtendedMouseRotate

ExtendedMouseRotate
public class ExtendedMouseRotate extends MouseBehavior (Code)
Extends the MouseRotate from Java3D so that one can specifiy around which axis the rotation should be done. (Most of the code is copied from MouseRotate)
author:
   sg
version:
   1.0


Field Summary
final public static  intMODE_ALL
    
final public static  intMODE_X
    
final public static  intMODE_Y
    
final public static  intMODE_Z
    

Constructor Summary
public  ExtendedMouseRotate(TransformGroup transformGroup)
     Creates a rotate behavior given the transform group.
public  ExtendedMouseRotate()
     Creates a default mouse rotate behavior.
public  ExtendedMouseRotate(int flags)
     Creates a rotate behavior.
public  ExtendedMouseRotate(Component c)
     Creates a rotate behavior that uses AWT listeners and behavior posts rather than WakeupOnAWTEvent.
public  ExtendedMouseRotate(Component c, TransformGroup transformGroup)
     Creates a rotate behavior that uses AWT listeners and behavior posts rather than WakeupOnAWTEvent.
public  ExtendedMouseRotate(Component c, int flags)
     Creates a rotate behavior that uses AWT listeners and behavior posts rather than WakeupOnAWTEvent.

Method Summary
 voiddoProcess(MouseEvent evt)
    
public  intgetMode()
    
public  doublegetXFactor()
     Return the x-axis movement multipler.
public  doublegetYFactor()
     Return the y-axis movement multipler.
public  voidinitialize()
    
public  voidprocessStimulus(Enumeration criteria)
    
public  voidsetFactor(double factor)
     Set the x-axis amd y-axis movement multipler with factor.
public  voidsetFactor(double xFactor, double yFactor)
     Set the x-axis amd y-axis movement multipler with xFactor and yFactor respectively.
public  voidsetMode(int mode)
     Set the mode of this MoudeRotate.
public  voidsetupCallback(MouseBehaviorCallback callback)
    
public  voidtransformChanged(Transform3D transform)
    

Field Detail
MODE_ALL
final public static int MODE_ALL(Code)



MODE_X
final public static int MODE_X(Code)



MODE_Y
final public static int MODE_Y(Code)



MODE_Z
final public static int MODE_Z(Code)




Constructor Detail
ExtendedMouseRotate
public ExtendedMouseRotate(TransformGroup transformGroup)(Code)
Creates a rotate behavior given the transform group.
Parameters:
  transformGroup - The transformGroup to operate on.



ExtendedMouseRotate
public ExtendedMouseRotate()(Code)
Creates a default mouse rotate behavior.



ExtendedMouseRotate
public ExtendedMouseRotate(int flags)(Code)
Creates a rotate behavior. Note that this behavior still needs a transform group to work on (use setTransformGroup(tg)) and the transform group must add this behavior.
Parameters:
  flags - interesting flags (wakeup conditions).



ExtendedMouseRotate
public ExtendedMouseRotate(Component c)(Code)
Creates a rotate behavior that uses AWT listeners and behavior posts rather than WakeupOnAWTEvent. The behavior is added to the specified Component. A null component can be passed to specify the behavior should use listeners. Components can then be added to the behavior with the addListener(Component c) method.
Parameters:
  c - The Component to add the MouseListener and MouseMotionListenerto.
since:
   Java 3D 1.2.1



ExtendedMouseRotate
public ExtendedMouseRotate(Component c, TransformGroup transformGroup)(Code)
Creates a rotate behavior that uses AWT listeners and behavior posts rather than WakeupOnAWTEvent. The behaviors is added to the specified Component and works on the given TransformGroup. A null component can be passed to specify the behavior should use listeners. Components can then be added to the behavior with the addListener(Component c) method.
Parameters:
  c - The Component to add the MouseListener and MouseMotionListenerto.
Parameters:
  transformGroup - The TransformGroup to operate on.
since:
   Java 3D 1.2.1



ExtendedMouseRotate
public ExtendedMouseRotate(Component c, int flags)(Code)
Creates a rotate behavior that uses AWT listeners and behavior posts rather than WakeupOnAWTEvent. The behavior is added to the specified Component. A null component can be passed to specify the behavior should use listeners. Components can then be added to the behavior with the addListener(Component c) method. Note that this behavior still needs a transform group to work on (use setTransformGroup(tg)) and the transform group must add this behavior.
Parameters:
  flags - interesting flags (wakeup conditions).
since:
   Java 3D 1.2.1




Method Detail
doProcess
void doProcess(MouseEvent evt)(Code)



getMode
public int getMode()(Code)
Gets the mode the mode the MouseRotate is in



getXFactor
public double getXFactor()(Code)
Return the x-axis movement multipler.



getYFactor
public double getYFactor()(Code)
Return the y-axis movement multipler.



initialize
public void initialize()(Code)



processStimulus
public void processStimulus(Enumeration criteria)(Code)



setFactor
public void setFactor(double factor)(Code)
Set the x-axis amd y-axis movement multipler with factor.



setFactor
public void setFactor(double xFactor, double yFactor)(Code)
Set the x-axis amd y-axis movement multipler with xFactor and yFactor respectively.



setMode
public void setMode(int mode)(Code)
Set the mode of this MoudeRotate. Must be one of MODE_ALL, MODE_X, MMODE_Y, ODE_Z else an IllegalArgumentException is thrown.
Parameters:
  mode -



setupCallback
public void setupCallback(MouseBehaviorCallback callback)(Code)
The transformChanged method in the callback class will be called every time the transform is updated



transformChanged
public void transformChanged(Transform3D transform)(Code)
Users can overload this method which is called every time the Behavior updates the transform Default implementation does nothing



Fields inherited from com.sun.j3d.utils.behaviors.mouse.MouseBehavior
final public static int INVERT_INPUT(Code)(Java Doc)
final public static int MANUAL_WAKEUP(Code)(Java Doc)
protected boolean buttonPress(Code)(Java Doc)
protected Transform3D currXform(Code)(Java Doc)
protected boolean enable(Code)(Java Doc)
protected int flags(Code)(Java Doc)
protected boolean invert(Code)(Java Doc)
protected WakeupOr mouseCriterion(Code)(Java Doc)
protected WakeupCriterion[] mouseEvents(Code)(Java Doc)
protected LinkedList mouseq(Code)(Java Doc)
protected boolean reset(Code)(Java Doc)
protected TransformGroup transformGroup(Code)(Java Doc)
protected Transform3D transformX(Code)(Java Doc)
protected Transform3D transformY(Code)(Java Doc)
protected boolean wakeUp(Code)(Java Doc)
protected int x_lasty_last(Code)(Java Doc)
protected int xy(Code)(Java Doc)

Methods inherited from com.sun.j3d.utils.behaviors.mouse.MouseBehavior
public void addListener(Component c)(Code)(Java Doc)
public TransformGroup getTransformGroup()(Code)(Java Doc)
public void initialize()(Code)(Java Doc)
public void mouseClicked(MouseEvent e)(Code)(Java Doc)
public void mouseDragged(MouseEvent e)(Code)(Java Doc)
public void mouseEntered(MouseEvent e)(Code)(Java Doc)
public void mouseExited(MouseEvent e)(Code)(Java Doc)
public void mouseMoved(MouseEvent e)(Code)(Java Doc)
public void mousePressed(MouseEvent e)(Code)(Java Doc)
public void mouseReleased(MouseEvent e)(Code)(Java Doc)
public void mouseWheelMoved(MouseWheelEvent e)(Code)(Java Doc)
public void processMouseEvent(MouseEvent evt)(Code)(Java Doc)
abstract public void processStimulus(Enumeration criteria)(Code)(Java Doc)
public void setEnable(boolean state)(Code)(Java Doc)
public void setTransformGroup(TransformGroup transformGroup)(Code)(Java Doc)
public void wakeup()(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.