|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.GraphicsConfigTemplate | +--javax.media.j3d.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 getGraphicsConfiguration method found in the GraphicsDevice class is then called with this GraphicsConfigTemplate. A valid GraphicsConfiguration is returned that meets or exceeds what was requested in the GraphicsConfigTemplate.
GraphicsConfigTemplate
,
GraphicsDevice
,
GraphicsConfiguration
, Serialized FormFields 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)
Returns the "best" configuration possible that passes the criteria defined in the GraphicsConfigTemplate3D. |
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 |
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 or 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 or green bits required. |
void |
setRedSize(int value)
Sets the number or red bits required. |
void |
setSceneAntialiasing(int value)
Sets the scene antialiasing requirement. |
void |
setStereo(int value)
Sets the stereo requirement. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public GraphicsConfigTemplate3D()
Method Detail |
public void setDoubleBuffer(int value)
value
- the value to set this field toGraphicsConfigTemplate.REQUIRED
,
GraphicsConfigTemplate.PREFERRED
,
GraphicsConfigTemplate.UNNECESSARY
public int getDoubleBuffer()
GraphicsConfigTemplate.REQUIRED
,
GraphicsConfigTemplate.PREFERRED
,
GraphicsConfigTemplate.UNNECESSARY
public void setStereo(int value)
value
- the value to set this field toGraphicsConfigTemplate.REQUIRED
,
GraphicsConfigTemplate.PREFERRED
,
GraphicsConfigTemplate.UNNECESSARY
public int getStereo()
GraphicsConfigTemplate.REQUIRED
,
GraphicsConfigTemplate.PREFERRED
,
GraphicsConfigTemplate.UNNECESSARY
public void setSceneAntialiasing(int value)
value
- the value to set this field toGraphicsConfigTemplate.REQUIRED
,
GraphicsConfigTemplate.PREFERRED
,
GraphicsConfigTemplate.UNNECESSARY
public int getSceneAntialiasing()
GraphicsConfigTemplate.REQUIRED
,
GraphicsConfigTemplate.PREFERRED
,
GraphicsConfigTemplate.UNNECESSARY
public void setDepthSize(int value)
value
- the value to set this field topublic int getDepthSize()
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)
gc
- the array of GraphicsConfigurations to choose fromGraphicsDevice
public boolean isGraphicsConfigSupported(java.awt.GraphicsConfiguration gc)
gc
- the GraphicsConfiguration object to testtrue
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |