|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.GraphicsConfigTemplate
javax.media.j3d.GraphicsConfigTemplate3D
public class GraphicsConfigTemplate3D
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.
GraphicsConfigTemplate
,
GraphicsDevice
,
GraphicsConfiguration
,
Serialized FormField Summary |
---|
Fields inherited from class java.awt.GraphicsConfigTemplate |
---|
PREFERRED, REQUIRED, UNNECESSARY |
Constructor Summary | |
---|---|
GraphicsConfigTemplate3D()
Constructs a GraphicsConfigTemplate3D object with default parameters. |
Method Summary | |
---|---|
java.awt.GraphicsConfiguration |
getBestConfiguration(java.awt.GraphicsConfiguration[] gc)
Implement the abstract function of getBestConfiguration() in GraphicsConfigTemplate. |
int |
getBlueSize()
Retrieves the number of blue bits requested by this template. |
int |
getDepthSize()
Retrieves the size of the depth buffer. |
int |
getDoubleBuffer()
Retrieves the double buffering value. |
int |
getGreenSize()
Retrieves the number of green bits requested by this template. |
int |
getRedSize()
Retrieves the number of red bits requested by this template. |
int |
getSceneAntialiasing()
Retrieves the scene antialiasing value. |
int |
getStencilSize()
Retrieves the size of the stencil buffer. |
int |
getStereo()
Retrieves the stereo value. |
boolean |
isGraphicsConfigSupported(java.awt.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. |
void |
setBlueSize(int value)
Sets the number of blue bits required. |
void |
setDepthSize(int value)
Sets the depth buffer size requirement. |
void |
setDoubleBuffer(int value)
Sets the double buffering requirement. |
void |
setGreenSize(int value)
Sets the number of green bits required. |
void |
setRedSize(int value)
Sets the number of red bits required. |
void |
setSceneAntialiasing(int value)
Sets the scene antialiasing requirement. |
void |
setStencilSize(int value)
Sets the stencil buffer size requirement. |
void |
setStereo(int value)
Sets the stereo requirement. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GraphicsConfigTemplate3D()
Method Detail |
---|
public void setDoubleBuffer(int value)
value
- the value to set this field topublic int getDoubleBuffer()
public void setStereo(int value)
value
- the value to set this field topublic int getStereo()
public void setSceneAntialiasing(int value)
value
- the value to set this field topublic int getSceneAntialiasing()
public void setDepthSize(int value)
value
- the value to set this field topublic int getDepthSize()
public void setStencilSize(int value)
value
- the value to set this field topublic int getStencilSize()
public void setRedSize(int value)
value
- the value to set this field topublic int getRedSize()
public void setGreenSize(int value)
value
- the value to set this field topublic int getGreenSize()
public void setBlueSize(int value)
value
- the value to set this field topublic int getBlueSize()
public java.awt.GraphicsConfiguration getBestConfiguration(java.awt.GraphicsConfiguration[] gc)
getBestConfiguration
in class java.awt.GraphicsConfigTemplate
gc
- the array of GraphicsConfigurations to choose from
GraphicsDevice
public boolean isGraphicsConfigSupported(java.awt.GraphicsConfiguration gc)
isGraphicsConfigSupported
in class java.awt.GraphicsConfigTemplate
gc
- the GraphicsConfiguration object to test
true
if this GraphicsConfiguration object
can be used to create surfaces that can be rendered to,
false
if the GraphicsConfiguration can not be used
to create a drawing surface usable by this API.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |