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


java.lang.Object
   javax.media.j3d.VirtualUniverse
      com.sun.j3d.utils.universe.SimpleUniverse

All known Subclasses:   com.sun.j3d.utils.universe.ConfiguredUniverse,  org.jdesktop.j3dedit.interposer.InterposerUniverse,
SimpleUniverse
public class SimpleUniverse extends VirtualUniverse (Code)
This class sets up a minimal user environment to quickly and easily get a Java 3D program up and running. This utility class creates all the necessary objects on the "view" side of the scene graph. Specifically, this class creates a locale, a single ViewingPlatform, and a Viewer object (both with their default values). Many basic Java 3D applications will find that SimpleUniverse provides all necessary functionality needed by their applications. More sophisticated applications may find that they need more control in order to get extra functionality and will not be able to use this class.
See Also:   Viewer
See Also:   ViewingPlatform


Field Summary
protected  Localelocale
     Locale reference needed to create the "view" portion of the scene graph.
protected  Viewer[]viewer
     Viewer reference needed to create the "view" portion of the scene graph.

Constructor Summary
public  SimpleUniverse()
     Creates a locale, a single ViewingPlatform, and and a Viewer object (both with their default values).
public  SimpleUniverse(int numTransforms)
     Creates a locale, a single ViewingPlatform, and a Viewer object (with default values).
public  SimpleUniverse(Canvas3D canvas)
     Creates a locale, a single ViewingPlatform (with default values), and and a Viewer object.
public  SimpleUniverse(Canvas3D canvas, int numTransforms)
     Creates a locale, a single ViewingPlatform, and a Viewer object The Viewer object uses default values for everything but the canvas. The ViewingPlatform is created with the specified number of TransformGroups.
Parameters:
  canvas - The canvas to associate with the Viewer object.
public  SimpleUniverse(Canvas3D canvas, int numTransforms, LocaleFactory localeFactory)
     Creates a locale, a single ViewingPlatform, and a Viewer object The Viewer object uses default values for everything but the canvas. The ViewingPlatform is created with the specified number of TransformGroups.
Parameters:
  canvas - The canvas to associate with the Viewer object.
public  SimpleUniverse(HiResCoord origin, int numTransforms, Canvas3D canvas, URL userConfig)
     Creates the "view" side of the scene graph.
public  SimpleUniverse(HiResCoord origin, int numTransforms, Canvas3D canvas, URL userConfig, LocaleFactory localeFactory)
     Creates the "view" side of the scene graph.
public  SimpleUniverse(ViewingPlatform viewingPlatform, Viewer viewer)
     Creates the "view" side of the scene graph.
public  SimpleUniverse(ViewingPlatform viewingPlatform, Viewer viewer, LocaleFactory localeFactory)
     Creates the "view" side of the scene graph.
 SimpleUniverse(HiResCoord origin, LocaleFactory localeFactory)
    

Method Summary
public  voidaddBranchGraph(BranchGroup bg)
     Used to add Nodes to the geometry side (as opposed to the view side) of the scene graph.
public  voidcleanup()
     Cleanup memory use and reference by SimpleUniverse.
public  Canvas3DgetCanvas()
     Returns the Canvas3D object associated with this Java 3D Universe. A reference to the Canvas3D object associated with theViewer object.
public  Canvas3DgetCanvas(int canvasNum)
     Returns the Canvas3D object at the specified index associated with this Java 3D Universe.
Parameters:
  canvasNum - The index of the Canvas3D object to retrieve.If there is no Canvas3D object for the given index, null is returned.
public  LocalegetLocale()
     Returns the Locale object associated with this scene graph.
public static  GraphicsConfigurationgetPreferredConfiguration()
     Finds the preferred GraphicsConfiguration object for the system.
public  ViewergetViewer()
     Returns the Viewer object associated with this scene graph.
public  ViewingPlatformgetViewingPlatform()
     Returns the ViewingPlatform object associated with this scene graph.

Field Detail
locale
protected Locale locale(Code)
Locale reference needed to create the "view" portion of the scene graph.



viewer
protected Viewer[] viewer(Code)
Viewer reference needed to create the "view" portion of the scene graph.




Constructor Detail
SimpleUniverse
public SimpleUniverse()(Code)
Creates a locale, a single ViewingPlatform, and and a Viewer object (both with their default values).
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform



SimpleUniverse
public SimpleUniverse(int numTransforms)(Code)
Creates a locale, a single ViewingPlatform, and a Viewer object (with default values). The ViewingPlatform is created with the specified number of TransformGroups.
Parameters:
  numTransforms - The number of transforms to be in theMultiTransformGroup object.
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
since:
   Java 3D 1.2.1



SimpleUniverse
public SimpleUniverse(Canvas3D canvas)(Code)
Creates a locale, a single ViewingPlatform (with default values), and and a Viewer object. The Viewer object uses default values for everything but the canvas.
Parameters:
  canvas - The canvas to associate with the Viewer object. Passingin null will cause this parameter to be ignored and a canvas to becreated by the utility.
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform



SimpleUniverse
public SimpleUniverse(Canvas3D canvas, int numTransforms)(Code)
Creates a locale, a single ViewingPlatform, and a Viewer object The Viewer object uses default values for everything but the canvas. The ViewingPlatform is created with the specified number of TransformGroups.
Parameters:
  canvas - The canvas to associate with the Viewer object. Passingin null will cause this parameter to be ignored and a canvas to becreated by the utility.
Parameters:
  numTransforms - The number of transforms to be in theMultiTransformGroup object.
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup
since:
   Java 3D 1.2.1



SimpleUniverse
public SimpleUniverse(Canvas3D canvas, int numTransforms, LocaleFactory localeFactory)(Code)
Creates a locale, a single ViewingPlatform, and a Viewer object The Viewer object uses default values for everything but the canvas. The ViewingPlatform is created with the specified number of TransformGroups.
Parameters:
  canvas - The canvas to associate with the Viewer object. Passingin null will cause this parameter to be ignored and a canvas to becreated by the utility.
Parameters:
  numTransforms - The number of transforms to be in theMultiTransformGroup object.
Parameters:
  localeFactory - Factory for creating the locale
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup
since:
   Java 3D 1.5.1



SimpleUniverse
public SimpleUniverse(HiResCoord origin, int numTransforms, Canvas3D canvas, URL userConfig)(Code)
Creates the "view" side of the scene graph. The passed in parameters override the default values where appropriate.
Parameters:
  origin - The origin used to set the origin of the Locale object.If this object is null, then 0.0 is used.
Parameters:
  numTransforms - The number of transforms to be in theMultiTransformGroup object.
Parameters:
  canvas - The canvas to draw into. If this is null, it isignored and a canvas will be created by the utility.
Parameters:
  userConfig - The URL to the user's configuration file, usedby the Viewer object. This is never examined and default values arealways taken.
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup



SimpleUniverse
public SimpleUniverse(HiResCoord origin, int numTransforms, Canvas3D canvas, URL userConfig, LocaleFactory localeFactory)(Code)
Creates the "view" side of the scene graph. The passed in parameters override the default values where appropriate.
Parameters:
  origin - The origin used to set the origin of the Locale object.If this object is null, then 0.0 is used.
Parameters:
  numTransforms - The number of transforms to be in theMultiTransformGroup object.
Parameters:
  canvas - The canvas to draw into. If this is null, it isignored and a canvas will be created by the utility.
Parameters:
  userConfig - The URL to the user's configuration file, usedby the Viewer object. This is never examined and default values arealways taken.
Parameters:
  localeFactory - The Locale Factory which will instantiate thelocale(s) for this universe.
See Also:   Locale
See Also:   Viewer
See Also:   ViewingPlatform
See Also:   MultiTransformGroup



SimpleUniverse
public SimpleUniverse(ViewingPlatform viewingPlatform, Viewer viewer)(Code)
Creates the "view" side of the scene graph. The passed in parameters override the default values where appropriate.
Parameters:
  viewingPlatform - The viewingPlatform to use to createthe "view" side of the scene graph.
Parameters:
  viewer - The viewer object to use to createthe "view" side of the scene graph.



SimpleUniverse
public SimpleUniverse(ViewingPlatform viewingPlatform, Viewer viewer, LocaleFactory localeFactory)(Code)
Creates the "view" side of the scene graph. The passed in parameters override the default values where appropriate.
Parameters:
  viewingPlatform - The viewingPlatform to use to createthe "view" side of the scene graph.
Parameters:
  viewer - The viewer object to use to createthe "view" side of the scene graph.
Parameters:
  localeFactory - The factory used to create the Locale Object



SimpleUniverse
SimpleUniverse(HiResCoord origin, LocaleFactory localeFactory)(Code)
Constructor for use by Configured Universe




Method Detail
addBranchGraph
public void addBranchGraph(BranchGroup bg)(Code)
Used to add Nodes to the geometry side (as opposed to the view side) of the scene graph. This is a short cut to getting the Locale object and calling that object's addBranchGraph() method.
Parameters:
  bg - The BranchGroup to attach to this Universe's Locale.



cleanup
public void cleanup()(Code)
Cleanup memory use and reference by SimpleUniverse. Typically it should be invoked by the applet's destroy method.



getCanvas
public Canvas3D getCanvas()(Code)
Returns the Canvas3D object associated with this Java 3D Universe. A reference to the Canvas3D object associated with theViewer object. This method is equivalent to calling getCanvas(0).
See Also:   Viewer



getCanvas
public Canvas3D getCanvas(int canvasNum)(Code)
Returns the Canvas3D object at the specified index associated with this Java 3D Universe.
Parameters:
  canvasNum - The index of the Canvas3D object to retrieve.If there is no Canvas3D object for the given index, null is returned. A reference to the Canvas3D object associated with theViewer object.



getLocale
public Locale getLocale()(Code)
Returns the Locale object associated with this scene graph. The Locale object used in the construction of this scenegraph.



getPreferredConfiguration
public static GraphicsConfiguration getPreferredConfiguration()(Code)
Finds the preferred GraphicsConfiguration object for the system. This object can then be used to create the Canvas3D objet for this system. The best GraphicsConfiguration object forthe system.



getViewer
public Viewer getViewer()(Code)
Returns the Viewer object associated with this scene graph. SimpleUniverse creates a single Viewer object for use in the scene graph. The Viewer object associated with this scene graph.



getViewingPlatform
public ViewingPlatform getViewingPlatform()(Code)
Returns the ViewingPlatform object associated with this scene graph. The ViewingPlatform object of this scene graph.



Methods inherited from javax.media.j3d.VirtualUniverse
public void addGraphStructureChangeListener(GraphStructureChangeListener listener)(Code)(Java Doc)
public static void addRenderingErrorListener(RenderingErrorListener listener)(Code)(Java Doc)
public void addShaderErrorListener(ShaderErrorListener listener)(Code)(Java Doc)
public Enumeration getAllLocales()(Code)(Java Doc)
public static int getJ3DThreadPriority()(Code)(Java Doc)
final public static Map getProperties()(Code)(Java Doc)
public int numLocales()(Code)(Java Doc)
public void removeAllLocales()(Code)(Java Doc)
public void removeGraphStructureChangeListener(GraphStructureChangeListener listener)(Code)(Java Doc)
public void removeLocale(Locale locale)(Code)(Java Doc)
public static void removeRenderingErrorListener(RenderingErrorListener listener)(Code)(Java Doc)
public void removeShaderErrorListener(ShaderErrorListener listener)(Code)(Java Doc)
public static void setJ3DThreadPriority(int priority)(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.