@Deprecated
public class SwGLGraphicsConfigTemplate
extends java.awt.GraphicsConfigTemplate
implements java.lang.Cloneable
The SwGLGraphicsConfigTemplate class is used to obtain a valid
SwGLGraphicsConfig. A user instantiates one of these objects and then
sets all non-default attributes as desired. The
SwGLGraphicsEnvironment.getBestConfiguration(SwGLGraphicsConfigTemplate)
method is then called with this SwGLGraphicsConfigTemplate.
A valid SwGLGraphicsConfig is returned that meets or exceeds what was requested in the SwGLGraphicsConfigTemplate.
SwGLGraphicsConfig,
SwGLGraphicsConfigTemplate,
java.awt.GraphicsConfigTemplate,
Serialized Form| Constructor and Description |
|---|
SwGLGraphicsConfigTemplate()
Deprecated.
Constructor
|
SwGLGraphicsConfigTemplate(SwGLGraphicsConfigTemplate orig)
Deprecated.
Constructs and initializes an SwGLGraphicsConfigTemplate from the specified
SwGLGraphicsConfigTemplate.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Deprecated.
Creates and returns a copy of this GLGraphicsConfigTemplate.
|
int |
getAccelerated()
Deprecated.
|
java.awt.GraphicsConfiguration |
getBestConfiguration(java.awt.GraphicsConfiguration[] gc)
Deprecated.
|
int |
getColorIndexed()
Deprecated.
|
int |
getDepth()
Deprecated.
|
int |
getDoubleBuffer()
Deprecated.
|
int |
getFullSceneAntialiasingNumSamples()
Deprecated.
|
int |
getMinDepthBits()
Deprecated.
|
int |
getMinStencilBits()
Deprecated.
|
int |
getOverlays()
Deprecated.
|
int |
getStencil()
Deprecated.
|
int |
getStereo()
Deprecated.
|
boolean |
isFullSceneAntialiasingEnabled()
Deprecated.
|
boolean |
isGLGraphicsConfigSupported(SwGLGraphicsConfig glGc)
Deprecated.
|
boolean |
isGraphicsConfigSupported(java.awt.GraphicsConfiguration gc)
Deprecated.
|
void |
setAccelerated(int pref)
Deprecated.
Indicates that the acceleration of the graphic context is required, preferred, or unnecessary according to the pref value.
|
void |
setAccum(int pref,
int minRedBits,
int maxRedBits,
int minGreenBits,
int maxGreenBits,
int minBlueBits,
int maxBlueBits,
int minAlphaBits,
int maxAlphaBits)
Deprecated.
Sets the accum preferences.
|
void |
setColorIndexed(int pref)
Deprecated.
Specifies the color mode.
|
void |
setColorIndexedBits(int pref,
int minBits,
int maxBits)
Deprecated.
Sets the index bits size preferences.
|
void |
setColorRGBABits(int pref,
int minRedBits,
int maxRedBits,
int minGreenBits,
int maxGreenBits,
int minBlueBits,
int maxBlueBits,
int minAlphaBits,
int maxAlphaBits)
Deprecated.
Sets the color RGBA bits size preferences.
|
void |
setDepth(int pref,
int minBits,
int maxBits)
Deprecated.
Set the depth buffer preferences.
|
void |
setDoubleBuffer(int pref)
Deprecated.
Indicates that double buffer mode is required, preferred, or unnecessary according to the pref value.
|
void |
setFullSceneAntialiasing(int pref,
int min,
int max)
Deprecated.
Sets the full scene antialiasing sample number preferences.
|
void |
setOverlays(int pref)
Deprecated.
Indicates that overlays are required, preferred, or unnecessary according to the pref value.
|
void |
setStencil(int pref,
int minBits,
int maxBits)
Deprecated.
Sets the stencil buffer preferences.
|
void |
setStereo(int pref)
Deprecated.
Indicates that stereo buffer mode is required, preferred, or unnecessary according to the pref value.
|
public SwGLGraphicsConfigTemplate()
public SwGLGraphicsConfigTemplate(SwGLGraphicsConfigTemplate orig)
public java.lang.Object clone()
clone in class java.lang.Objectpublic void setDoubleBuffer(int pref)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERRED , GraphicsConfigTemplate.UNNECESSARYpublic void setAccelerated(int pref)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERRED , GraphicsConfigTemplate.UNNECESSARYpublic void setStereo(int pref)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERRED , GraphicsConfigTemplate.UNNECESSARYpublic void setOverlays(int pref)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERRED , GraphicsConfigTemplate.UNNECESSARYpublic void setColorIndexed(int pref)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.UNNECESSARYpublic void setColorIndexedBits(int pref,
int minBits,
int maxBits)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERREDpublic void setColorRGBABits(int pref,
int minRedBits,
int maxRedBits,
int minGreenBits,
int maxGreenBits,
int minBlueBits,
int maxBlueBits,
int minAlphaBits,
int maxAlphaBits)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERREDpublic void setDepth(int pref,
int minBits,
int maxBits)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERRED , GraphicsConfigTemplate.UNNECESSARYpublic void setAccum(int pref,
int minRedBits,
int maxRedBits,
int minGreenBits,
int maxGreenBits,
int minBlueBits,
int maxBlueBits,
int minAlphaBits,
int maxAlphaBits)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERRED , GraphicsConfigTemplate.UNNECESSARYpublic void setStencil(int pref,
int minBits,
int maxBits)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERRED , GraphicsConfigTemplate.UNNECESSARYpublic void setFullSceneAntialiasing(int pref,
int min,
int max)
GraphicsConfigTemplate.REQUIRED , GraphicsConfigTemplate.PREFERRED , GraphicsConfigTemplate.UNNECESSARY@Deprecated public boolean isGraphicsConfigSupported(java.awt.GraphicsConfiguration gc)
boolean indicating whether or
not the specified GraphicsConfiguration can be
used to create an OpenGL drawing area that supports the indicated
features.isGraphicsConfigSupported in class java.awt.GraphicsConfigTemplategc - the GraphicsConfiguration object to testtrue if this
GraphicsConfiguration object can be used to create
OpenGL drawing areas that support the indicated features.@Deprecated public boolean isGLGraphicsConfigSupported(SwGLGraphicsConfig glGc)
@Deprecated public java.awt.GraphicsConfiguration getBestConfiguration(java.awt.GraphicsConfiguration[] gc)
GLGraphicsConfigTemplate.getBestConfiguration in class java.awt.GraphicsConfigTemplategc - the array of GraphicsConfiguration
objects to choose from.GraphicsConfiguration object that is
the best configuration possible.public int getDoubleBuffer()
public int getAccelerated()
public int getStereo()
public int getOverlays()
public int getDepth()
public int getMinDepthBits()
public int getStencil()
public int getMinStencilBits()
public boolean isFullSceneAntialiasingEnabled()
public int getFullSceneAntialiasingNumSamples()
public int getColorIndexed()
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com