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


javax.swing.JFrame
   org.jdesktop.j3dfly.J3dFlyController

J3dFlyController
public class J3dFlyController extends javax.swing.JFrame implements LoaderControlListener,J3fLoaderListener,ManifestParser.ManifestListener(Code)
The controller for J3dFly. TODO Move the collision elements of this package into a plugin.
author:
   Paul Byrne
version:
   $Id: J3dFlyController.java,v 1.5 2007/05/02 22:06:32 paulby Exp $



Constructor Summary
public  J3dFlyController(J3dFlyContext context)
    

Method Summary
public  voidaddBranchGraph(BranchGroup graph)
    
public  voidchangeCollisionController(VPDefaultCollision newController)
     Change the collisionController to the new object.
 voidcheckForLights(boolean autoAdd)
     Check if the graph contains any lights and if it needs lights If it does not have lights but requires them then ask the user if they would like to add some If autoAdd is true the lights are added without asking the user.
public  voidclearUniverse()
    
public  voidconfigureLoaders(java.awt.Frame parent)
    
public  voidenableCollision(boolean enabled)
     Enable/Disable collision detection for viewplatform behavior.
public  voidfoundManifestAttribute(String name, String value)
    
public  BranchGroup[]getBranchGraphs(BranchGroup[] graphArray)
    
public  VPDefaultCollisiongetCollisionController()
    
public  StringgetCurrentSceneName()
    
public  JFileChoosergetFileChooser()
    
public  LoaderControlgetLoaderControl()
    
public  BoundingSpheregetWorldBounds()
    
public  booleanisCollisionEnabled()
    
public  voidloadGeometry(java.io.File file)
    
public  java.io.FileloadScene()
    
public  voidloadScene(java.io.File file)
    
public  voidloadingJ3f(J3fLoader loader)
    
public  voidremoveBranchGraph(BranchGroup graph)
    
public  java.io.FilesaveAsScene()
     Allow the user to select a filename and save the scene.
public  java.io.FilesaveAsScene(boolean asStream, boolean coreClassesOnly)
    
public  voidsaveScene(java.io.File file)
    
public  voidsaveSceneGraph(java.io.File file)
    
public  voidsaveSceneGraphAsStream(java.io.File file)
    
public  voidsceneLoaded(int status, com.sun.j3d.loaders.Scene scene, int loaderID, java.io.File file, Exception ex)
    
public  voidsetCollisionEnabled(boolean enabled)
     Enable/Disable collision detection for viewplatform behavior.
public  voidsetDefaultFileExtension(String extension)
     Set the default file extension.
Parameters:
  extension - string without the .
public  voidsetVPBehavior(VPBehaviorPlugin plugin)
    
public  doubleshowAll(int axis)
     Move the view platform so that all geometry fit inside view frustum Axis must be one of the constant axis specified in ViewUtils.
public  voidshowStatsDialog(java.awt.Container parent)
    


Constructor Detail
J3dFlyController
public J3dFlyController(J3dFlyContext context)(Code)
Creates new form controlPanel




Method Detail
addBranchGraph
public void addBranchGraph(BranchGroup graph)(Code)
Add a new Branch Graph to the universe This method also sets the ALLOW_DETACH capability bit on graph so it can be removed later if needed



changeCollisionController
public void changeCollisionController(VPDefaultCollision newController)(Code)
Change the collisionController to the new object. Copy the state from the old controller to the new



checkForLights
void checkForLights(boolean autoAdd)(Code)
Check if the graph contains any lights and if it needs lights If it does not have lights but requires them then ask the user if they would like to add some If autoAdd is true the lights are added without asking the user. Returns true if no changes made, returns false is scene graph updated If lightBG is not null, the lights will be added to it, otherwise they will be added in a new BranchGraph Scene graph must not be live



clearUniverse
public void clearUniverse()(Code)
Remove all geometry from the scenegraph and reset the universe



configureLoaders
public void configureLoaders(java.awt.Frame parent)(Code)
Display a dialog to allow users to select loaders



enableCollision
public void enableCollision(boolean enabled)(Code)
Enable/Disable collision detection for viewplatform behavior. If necessary set the capability bits in the scenegraph to enable picking of geometry which is how the collision detection is implemented



foundManifestAttribute
public void foundManifestAttribute(String name, String value)(Code)
Listener for ManifestParser



getBranchGraphs
public BranchGroup[] getBranchGraphs(BranchGroup[] graphArray)(Code)
Return an array of all the BranchGraphs in the universe, if graphArray is not null and is the correct size it will be populated with the graphs and returned, otherwise a new array will be created and returned



getCollisionController
public VPDefaultCollision getCollisionController()(Code)



getCurrentSceneName
public String getCurrentSceneName()(Code)



getFileChooser
public JFileChooser getFileChooser()(Code)
Returns the file chooser



getLoaderControl
public LoaderControl getLoaderControl()(Code)
Returns the LoaderControl object used by J3dFly



getWorldBounds
public BoundingSphere getWorldBounds()(Code)



isCollisionEnabled
public boolean isCollisionEnabled()(Code)
Return true if Collision detection is enabled, false otherwise



loadGeometry
public void loadGeometry(java.io.File file)(Code)
Load some geometry from the specified file and add it to the existing scene graph



loadScene
public java.io.File loadScene()(Code)
Load a scene Presents a FileChooser to the user and allows a scene to be selected Returns the file loaded



loadScene
public void loadScene(java.io.File file)(Code)
Load the scene from the specified file



loadingJ3f
public void loadingJ3f(J3fLoader loader)(Code)
Callback for J3fLoaderListener



removeBranchGraph
public void removeBranchGraph(BranchGroup graph)(Code)
Remove a Branch Graph from the universe



saveAsScene
public java.io.File saveAsScene()(Code)
Allow the user to select a filename and save the scene. Universe must not be live when this method is called Returns the file saved



saveAsScene
public java.io.File saveAsScene(boolean asStream, boolean coreClassesOnly)(Code)



saveScene
public void saveScene(java.io.File file)(Code)
Saves the scene is the specified file Universe must not be live when this method is called



saveSceneGraph
public void saveSceneGraph(java.io.File file)(Code)
Write the branchgraphs to file



saveSceneGraphAsStream
public void saveSceneGraphAsStream(java.io.File file)(Code)



sceneLoaded
public void sceneLoaded(int status, com.sun.j3d.loaders.Scene scene, int loaderID, java.io.File file, Exception ex)(Code)
Callback from scene loader when load is complete



setCollisionEnabled
public void setCollisionEnabled(boolean enabled)(Code)
Enable/Disable collision detection for viewplatform behavior. If necessary set the capability bits in the scenegraph to enable picking of geometry which is how the collision detection is implemented



setDefaultFileExtension
public void setDefaultFileExtension(String extension)(Code)
Set the default file extension.
Parameters:
  extension - string without the . ie j3f or j3s



setVPBehavior
public void setVPBehavior(VPBehaviorPlugin plugin)(Code)
Set the ViewPlatform behavior



showAll
public double showAll(int axis)(Code)
Move the view platform so that all geometry fit inside view frustum Axis must be one of the constant axis specified in ViewUtils. Return the eye Distance from the center of the Scene bounds



showStatsDialog
public void showStatsDialog(java.awt.Container parent)(Code)
Show the stats Dialog



Fields inherited from javax.swing.JFrame
final public static int EXIT_ON_CLOSE(Code)(Java Doc)
protected AccessibleContext accessibleContext(Code)(Java Doc)
protected JRootPane rootPane(Code)(Java Doc)
protected boolean rootPaneCheckingEnabled(Code)(Java Doc)

Methods inherited from javax.swing.JFrame
protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
protected JRootPane createRootPane()(Code)(Java Doc)
protected void frameInit()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Container getContentPane()(Code)(Java Doc)
public int getDefaultCloseOperation()(Code)(Java Doc)
public Component getGlassPane()(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public JMenuBar getJMenuBar()(Code)(Java Doc)
public JLayeredPane getLayeredPane()(Code)(Java Doc)
public JRootPane getRootPane()(Code)(Java Doc)
public TransferHandler getTransferHandler()(Code)(Java Doc)
public static boolean isDefaultLookAndFeelDecorated()(Code)(Java Doc)
protected boolean isRootPaneCheckingEnabled()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
protected void processWindowEvent(WindowEvent e)(Code)(Java Doc)
public void remove(Component comp)(Code)(Java Doc)
public void repaint(long time, int x, int y, int width, int height)(Code)(Java Doc)
public void setContentPane(Container contentPane)(Code)(Java Doc)
public void setDefaultCloseOperation(int operation)(Code)(Java Doc)
public static void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)(Code)(Java Doc)
public void setGlassPane(Component glassPane)(Code)(Java Doc)
public void setIconImage(Image image)(Code)(Java Doc)
public void setJMenuBar(JMenuBar menubar)(Code)(Java Doc)
public void setLayeredPane(JLayeredPane layeredPane)(Code)(Java Doc)
public void setLayout(LayoutManager manager)(Code)(Java Doc)
protected void setRootPane(JRootPane root)(Code)(Java Doc)
protected void setRootPaneCheckingEnabled(boolean enabled)(Code)(Java Doc)
public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc)
public void update(Graphics g)(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.