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


java.lang.Object
   java.awt.GraphicsConfigTemplate
      javax.media.j3d.GraphicsConfigTemplate3D

GraphicsConfigTemplate3D
public class GraphicsConfigTemplate3D extends GraphicsConfigTemplate (Code)
This class is used to obtain a valid GraphicsConfiguration that can be used by Java 3D. A user instantiates one of these objects and then sets all non-default attributes as desired. The getBestConfiguration() method in the GraphicsDevice class is then called with this GraphicsConfigTemplate and the "best" GraphicsConfiguration is returned. The "best" GraphicsConfiguration means that this GraphicsConfiguration is supported and it meets or exceeds what was requested in the GraphicsConfigTemplate. Null is returned if no such "best" GraphicsConfiguration is found.
See Also:   GraphicsConfigTemplate
See Also:   GraphicsDevice
See Also:   GraphicsConfiguration


Field Summary
 intblueSize
    
 intdepthSize
    
 intdoubleBuffer
    
static  ObjectglobalLock
    
 intgreenSize
    
static  ObjectmonitorLock
    
 intredSize
    
 intsceneAntialiasing
    
 intstencilSize
    
 intstereo
    
 ObjecttestCfg
    
static volatile  booleanthreadWaiting
    

Constructor Summary
public  GraphicsConfigTemplate3D()
     Constructs a GraphicsConfigTemplate3D object with default parameters.

Method Summary
public  GraphicsConfigurationgetBestConfiguration(GraphicsConfiguration[] gc)
     Implement the abstract function of getBestConfiguration() in GraphicsConfigTemplate. Usually this function is not directly called by the user.
public  intgetBlueSize()
     Retrieves the number of blue bits requested by this template.
public  intgetDepthSize()
     Retrieves the size of the depth buffer.
public  intgetDoubleBuffer()
     Retrieves the double buffering value.
static  voidgetGraphicsConfigFeatures(Canvas3D c)
    
public  intgetGreenSize()
     Retrieves the number of green bits requested by this template.
public  intgetRedSize()
     Retrieves the number of red bits requested by this template.
public  intgetSceneAntialiasing()
     Retrieves the scene antialiasing value.
public  intgetStencilSize()
     Retrieves the size of the stencil buffer.
public  intgetStereo()
     Retrieves the stereo value.
public  booleanisGraphicsConfigSupported(GraphicsConfiguration gc)
     Returns a boolean indicating whether or not the given GraphicsConfiguration can be used to create a drawing surface that can be rendered to.
static  voidrunMonitor(int action)
    
public  voidsetBlueSize(int value)
     Sets the number of blue bits required.
public  voidsetDepthSize(int value)
     Sets the depth buffer size requirement.
public  voidsetDoubleBuffer(int value)
     Sets the double buffering requirement.
public  voidsetGreenSize(int value)
     Sets the number of green bits required.
static  voidsetQueryProps(Canvas3D c)
    
public  voidsetRedSize(int value)
     Sets the number of red bits required.
public  voidsetSceneAntialiasing(int value)
     Sets the scene antialiasing requirement.
public  voidsetStencilSize(int value)
     Sets the stencil buffer size requirement.
public  voidsetStereo(int value)
     Sets the stereo requirement.
public  StringtoString()
     Returns a string representation of this object.

Field Detail
blueSize
int blueSize(Code)



depthSize
int depthSize(Code)



doubleBuffer
int doubleBuffer(Code)



globalLock
static Object globalLock(Code)



greenSize
int greenSize(Code)



monitorLock
static Object monitorLock(Code)



redSize
int redSize(Code)



sceneAntialiasing
int sceneAntialiasing(Code)



stencilSize
int stencilSize(Code)



stereo
int stereo(Code)



testCfg
Object testCfg(Code)



threadWaiting
static volatile boolean threadWaiting(Code)




Constructor Detail
GraphicsConfigTemplate3D
public GraphicsConfigTemplate3D()(Code)
Constructs a GraphicsConfigTemplate3D object with default parameters. The default values are as follows:
    depthSize : 16
    doubleBuffer : REQUIRED
    sceneAntialiasing : UNNECESSARY
    stereo : UNNECESSARY
    redSize : 2
    greenSize : 2
    blueSize : 2
    stencilSize : 0




Method Detail
getBestConfiguration
public GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] gc)(Code)
Implement the abstract function of getBestConfiguration() in GraphicsConfigTemplate. Usually this function is not directly called by the user. It is implicitly called by getBestConfiguration() in GraphicsDevice. The method getBestConfiguration() in GraphicsDevice will return whatever this function returns. This function will return the "best" GraphicsConfiguration. The "best" GraphicsConfiguration means that this GraphicsConfiguration is supported and it meets or exceeds what was requested in the GraphicsConfigTemplate. If no such "best" GraphicsConfiguration is found, null is returned.
Parameters:
  gc - the array of GraphicsConfigurations to choose from the best GraphicsConfiguration
See Also:   GraphicsDevice



getBlueSize
public int getBlueSize()(Code)
Retrieves the number of blue bits requested by this template. the current value of the blueSize attribute.



getDepthSize
public int getDepthSize()(Code)
Retrieves the size of the depth buffer. the current value of the depthSize attribute



getDoubleBuffer
public int getDoubleBuffer()(Code)
Retrieves the double buffering value. the current value of the doubleBuffer attribute



getGraphicsConfigFeatures
static void getGraphicsConfigFeatures(Canvas3D c)(Code)
Set the stereo/doubleBuffer/sceneAntialiasingAccum and hasSceneAntialiasingMultiSamples flags in Canvas3D



getGreenSize
public int getGreenSize()(Code)
Retrieves the number of green bits requested by this template. the current value of the greenSize attribute.



getRedSize
public int getRedSize()(Code)
Retrieves the number of red bits requested by this template. the current value of the redSize attribute.



getSceneAntialiasing
public int getSceneAntialiasing()(Code)
Retrieves the scene antialiasing value. the current value of the scene antialiasing attribute.



getStencilSize
public int getStencilSize()(Code)
Retrieves the size of the stencil buffer. the current value of the stencilSize attribute
since:
   Java 3D 1.4



getStereo
public int getStereo()(Code)
Retrieves the stereo value. the current value of the stereo attribute.



isGraphicsConfigSupported
public boolean isGraphicsConfigSupported(GraphicsConfiguration gc)(Code)
Returns a boolean indicating whether or not the given GraphicsConfiguration can be used to create a drawing surface that can be rendered to.
Parameters:
  gc - the GraphicsConfiguration object to test true if this GraphicsConfiguration objectcan be used to create surfaces that can be rendered to,false if the GraphicsConfiguration can not be usedto create a drawing surface usable by this API.



runMonitor
static void runMonitor(int action)(Code)



setBlueSize
public void setBlueSize(int value)(Code)
Sets the number of blue bits required. This is the minimum requirement. If no GraphicsConfiguration is found that meets or exceeds this minimum requirement, null will be returned in getBestConfiguration().
Parameters:
  value - the value to set this field to



setDepthSize
public void setDepthSize(int value)(Code)
Sets the depth buffer size requirement. This is the minimum requirement. If no GraphicsConfiguration is found that meets or exceeds this minimum requirement, null will be returned in getBestConfiguration().
Parameters:
  value - the value to set this field to



setDoubleBuffer
public void setDoubleBuffer(int value)(Code)
Sets the double buffering requirement. It should be GraphicsConfigTemplate.REQUIRED, GraphicsConfigTemplate.PREFERRED, or GraphicsConfigTemplate.UNNECESSARY. If an invalid value is passed in, it is ignored. If the value of double buffering is GraphicsConfigTemplate.REQUIRED, and no GraphicsConfiguration is found that meets this requirement, null will be returned in getBestConfiguration().
Parameters:
  value - the value to set this field to



setGreenSize
public void setGreenSize(int value)(Code)
Sets the number of green bits required. This is the minimum requirement. If no GraphicsConfiguration is found that meets or exceeds this minimum requirement, null will be returned in getBestConfiguration().
Parameters:
  value - the value to set this field to



setQueryProps
static void setQueryProps(Canvas3D c)(Code)
Set the queryProperties() map in Canvas3D



setRedSize
public void setRedSize(int value)(Code)
Sets the number of red bits required. This is the minimum requirement. If no GraphicsConfiguration is found that meets or exceeds this minimum requirement, null will be returned in getBestConfiguration().
Parameters:
  value - the value to set this field to



setSceneAntialiasing
public void setSceneAntialiasing(int value)(Code)
Sets the scene antialiasing requirement. It should be GraphicsConfigTemplate.REQUIRED, GraphicsConfigTemplate.PREFERRED, or GraphicsConfigTemplate.UNNECESSARY. If an invalid value is passed in, it is ignored. If the value of scene antialiasing is GraphicsConfigTemplate.REQUIRED, and no GraphicsConfiguration is found that meets this requirement, null will be returned in getBestConfiguration().
Parameters:
  value - the value to set this field to



setStencilSize
public void setStencilSize(int value)(Code)
Sets the stencil buffer size requirement. This is the minimum requirement. If no GraphicsConfiguration is found that meets or exceeds this minimum requirement, null will be returned in getBestConfiguration().
Parameters:
  value - the value to set this field to
since:
   Java 3D 1.4



setStereo
public void setStereo(int value)(Code)
Sets the stereo requirement. It should be GraphicsConfigTemplate.REQUIRED, GraphicsConfigTemplate.PREFERRED, or GraphicsConfigTemplate.UNNECESSARY. If an invalid value is passed in, it is ignored. If the value of stereo requirement is GraphicsConfigTemplate.REQUIRED, and no GraphicsConfiguration is found that meets this requirement, null will be returned in getBestConfiguration().
Parameters:
  value - the value to set this field to



toString
public String toString()(Code)
Returns a string representation of this object. a string representation of this object.



Fields inherited from java.awt.GraphicsConfigTemplate
final public static int PREFERRED(Code)(Java Doc)
final public static int REQUIRED(Code)(Java Doc)
final public static int UNNECESSARY(Code)(Java Doc)

Methods inherited from java.awt.GraphicsConfigTemplate
abstract public GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] gc)(Code)(Java Doc)
abstract public boolean isGraphicsConfigSupported(GraphicsConfiguration gc)(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.