Source Code Cross Referenced for J3dFlyMouseBehaviorControlPanel.java in  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3dfly » plugins » 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 » org.jdesktop.j3dfly.plugins 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *  $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/plugins/J3dFlyMouseBehaviorControlPanel.java,v 1.1 2005/04/20 21:04:40 paulby Exp $
003:         *
004:         *                         Sun Public License Notice
005:         *
006:         *  The contents of this file are subject to the Sun Public License Version
007:         *  1.0 (the "License"). You may not use this file except in compliance with
008:         *  the License. A copy of the License is available at http://www.sun.com/
009:         *  
010:         *  The Original Code is Java 3D(tm) Fly Through.
011:         *  The Initial Developer of the Original Code is Paul Byrne.
012:         *  Portions created by Paul Byrne are Copyright (C) 2002.
013:         *  All Rights Reserved.
014:         *  
015:         *  Contributor(s): Paul Byrne.
016:         *  
017:         **/
018:        package org.jdesktop.j3dfly.plugins;
019:
020:        /**
021:         *
022:         * @author  Paul Byrne
023:         * @version $Revision: 1.1 $
024:         */
025:        public class J3dFlyMouseBehaviorControlPanel extends javax.swing.JPanel {
026:
027:            private J3dFlyMouseBehaviorPluginPreference pluginPref;
028:
029:            /** Creates new form J3dFlyMouseBehaviorControlPanel */
030:            public J3dFlyMouseBehaviorControlPanel(
031:                    J3dFlyMouseBehaviorPluginPreference pluginPref) {
032:                this .pluginPref = pluginPref;
033:                initComponents();
034:            }
035:
036:            /** This method is called from within the constructor to
037:             * initialize the form.
038:             * WARNING: Do NOT modify this code. The content of this method is
039:             * always regenerated by the Form Editor.
040:             */
041:            private void initComponents() {//GEN-BEGIN:initComponents
042:                java.awt.GridBagConstraints gridBagConstraints;
043:
044:                jLabel1 = new javax.swing.JLabel();
045:                jLabel2 = new javax.swing.JLabel();
046:                jLabel3 = new javax.swing.JLabel();
047:                jLabel4 = new javax.swing.JLabel();
048:                angleTF = new javax.swing.JTextField();
049:                forwardTF = new javax.swing.JTextField();
050:
051:                setLayout(new java.awt.GridBagLayout());
052:
053:                jLabel1.setText("Angle Step");
054:                jLabel1.setToolTipText("The maximum angle change per frame");
055:                gridBagConstraints = new java.awt.GridBagConstraints();
056:                gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
057:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);
058:                add(jLabel1, gridBagConstraints);
059:
060:                jLabel2.setText("Forward Step");
061:                jLabel2.setToolTipText("The maximum forward step per frame");
062:                gridBagConstraints = new java.awt.GridBagConstraints();
063:                gridBagConstraints.gridx = 0;
064:                gridBagConstraints.gridy = 1;
065:                gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
066:                gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);
067:                add(jLabel2, gridBagConstraints);
068:
069:                jLabel3.setText("meters");
070:                gridBagConstraints = new java.awt.GridBagConstraints();
071:                gridBagConstraints.gridx = 2;
072:                gridBagConstraints.gridy = 1;
073:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
074:                gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 0);
075:                add(jLabel3, gridBagConstraints);
076:
077:                jLabel4.setText("degrees");
078:                gridBagConstraints = new java.awt.GridBagConstraints();
079:                gridBagConstraints.gridx = 2;
080:                gridBagConstraints.gridy = 0;
081:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
082:                gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 0);
083:                add(jLabel4, gridBagConstraints);
084:
085:                angleTF.setColumns(7);
086:                angleTF
087:                        .setDocument(new org.jdesktop.j3dfly.utils.gui.FloatDocument());
088:                angleTF.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
089:                angleTF.setText("3");
090:                angleTF.setToolTipText("The maximum angle change per frame");
091:                angleTF.addActionListener(new java.awt.event.ActionListener() {
092:                    public void actionPerformed(java.awt.event.ActionEvent evt) {
093:                        angleTFActionPerformed(evt);
094:                    }
095:                });
096:
097:                angleTF.addFocusListener(new java.awt.event.FocusAdapter() {
098:                    public void focusLost(java.awt.event.FocusEvent evt) {
099:                        angleTFFocusLost(evt);
100:                    }
101:                });
102:
103:                gridBagConstraints = new java.awt.GridBagConstraints();
104:                gridBagConstraints.gridx = 1;
105:                gridBagConstraints.gridy = 0;
106:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
107:                add(angleTF, gridBagConstraints);
108:
109:                forwardTF.setColumns(7);
110:                forwardTF
111:                        .setDocument(new org.jdesktop.j3dfly.utils.gui.FloatDocument());
112:
113:                forwardTF.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
114:                forwardTF.setText("10");
115:                forwardTF.setToolTipText("The maximum forward step per frame");
116:                forwardTF
117:                        .addActionListener(new java.awt.event.ActionListener() {
118:                            public void actionPerformed(
119:                                    java.awt.event.ActionEvent evt) {
120:                                forwardTFActionPerformed(evt);
121:                            }
122:                        });
123:
124:                forwardTF.addFocusListener(new java.awt.event.FocusAdapter() {
125:                    public void focusLost(java.awt.event.FocusEvent evt) {
126:                        forwardTFFocusLost(evt);
127:                    }
128:                });
129:
130:                gridBagConstraints = new java.awt.GridBagConstraints();
131:                gridBagConstraints.gridx = 1;
132:                gridBagConstraints.gridy = 1;
133:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
134:                add(forwardTF, gridBagConstraints);
135:
136:            }//GEN-END:initComponents
137:
138:            private void forwardTFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_forwardTFActionPerformed
139:                // Add your handling code here:
140:                pluginPref.setForwardStep((float) Math.toRadians(Float
141:                        .parseFloat(forwardTF.getText())));
142:            }//GEN-LAST:event_forwardTFActionPerformed
143:
144:            private void forwardTFFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_forwardTFFocusLost
145:                // Add your handling code here:
146:                pluginPref.setForwardStep((float) Math.toRadians(Float
147:                        .parseFloat(forwardTF.getText())));
148:            }//GEN-LAST:event_forwardTFFocusLost
149:
150:            private void angleTFFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_angleTFFocusLost
151:                // Add your handling code here:
152:                pluginPref.setAngleStep((float) Math.toRadians(Float
153:                        .parseFloat(angleTF.getText())));
154:            }//GEN-LAST:event_angleTFFocusLost
155:
156:            private void angleTFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_angleTFActionPerformed
157:                // Add your handling code here:
158:                pluginPref.setAngleStep((float) Math.toRadians(Float
159:                        .parseFloat(angleTF.getText())));
160:            }//GEN-LAST:event_angleTFActionPerformed
161:
162:            // Variables declaration - do not modify//GEN-BEGIN:variables
163:            private javax.swing.JTextField forwardTF;
164:            private javax.swing.JLabel jLabel4;
165:            private javax.swing.JLabel jLabel3;
166:            private javax.swing.JLabel jLabel2;
167:            private javax.swing.JLabel jLabel1;
168:            private javax.swing.JTextField angleTF;
169:            // End of variables declaration//GEN-END:variables
170:
171:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.