public class DefaultGraphicsConfiguration extends Object implements Cloneable, AbstractGraphicsConfiguration
VisualIDHolder.VIDComparator, VisualIDHolder.VIDTypeVID_UNDEFINED| Constructor and Description |
|---|
DefaultGraphicsConfiguration(AbstractGraphicsScreen screen,
CapabilitiesImmutable capsChosen,
CapabilitiesImmutable capsRequested) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
CapabilitiesImmutable |
getChosenCapabilities()
Return the capabilities reflecting this graphics configuration,
which may differ from the capabilities used to choose this configuration.
|
AbstractGraphicsConfiguration |
getNativeGraphicsConfiguration()
In case the implementation utilizes a delegation pattern to wrap abstract toolkits,
this method shall return the native
AbstractGraphicsConfiguration,
otherwise this instance. |
CapabilitiesImmutable |
getRequestedCapabilities()
Return the capabilities used to choose this graphics configuration.
|
AbstractGraphicsScreen |
getScreen()
Return the screen this graphics configuration is valid for
|
int |
getVisualID(VisualIDHolder.VIDType type)
Returns the native visual ID of the given
type
if supported, or VisualIDHolder.VID_UNDEFINED if not supported. |
static String |
toHexString(int val) |
static String |
toHexString(long val) |
String |
toString() |
public DefaultGraphicsConfiguration(AbstractGraphicsScreen screen, CapabilitiesImmutable capsChosen, CapabilitiesImmutable capsRequested)
public final AbstractGraphicsScreen getScreen()
AbstractGraphicsConfigurationgetScreen in interface AbstractGraphicsConfigurationpublic final CapabilitiesImmutable getChosenCapabilities()
AbstractGraphicsConfigurationgetChosenCapabilities in interface AbstractGraphicsConfigurationpublic final CapabilitiesImmutable getRequestedCapabilities()
AbstractGraphicsConfigurationgetRequestedCapabilities in interface AbstractGraphicsConfigurationpublic AbstractGraphicsConfiguration getNativeGraphicsConfiguration()
AbstractGraphicsConfigurationAbstractGraphicsConfiguration,
otherwise this instance.getNativeGraphicsConfiguration in interface AbstractGraphicsConfigurationNativeSurface.getGraphicsConfiguration()public final int getVisualID(VisualIDHolder.VIDType type) throws NativeWindowException
VisualIDHoldertype
if supported, or VisualIDHolder.VID_UNDEFINED if not supported.
Depending on the native windowing system, type is handled as follows:
EGL_CONFIG, WIN32_PFD
INTRINSIC: X11 XVisual IDNATIVE: X11 XVisual IDX11_XVISUAL: X11 XVisual IDX11_FBCONFIG: VID_UNDEFINEDEGL_CONFIG, WIN32_PFD
INTRINSIC: X11 XVisual IDNATIVE: X11 XVisual IDX11_XVISUAL: X11 XVisual IDX11_FBCONFIG: X11 FBConfig ID or VID_UNDEFINEDEGL_CONFIG, X11_XVISUAL, X11_FBCONFIG
INTRINSIC: Win32 PIXELFORMATDESCRIPTOR IDNATIVE: Win32 PIXELFORMATDESCRIPTOR IDWIN32_PFD: Win32 PIXELFORMATDESCRIPTOR IDX11_XVISUAL, X11_FBCONFIG, WIN32_PFD
INTRINSIC: EGL Config IDNATIVE: EGL NativeVisual ID (X11 XVisual ID, Win32 PIXELFORMATDESCRIPTOR ID, ...)EGL_CONFIG: EGL Config IDINTRINSIC and NATIVE are always handled,
but may result in VisualIDHolder.VID_UNDEFINED. The latter is true if
the native value are actually undefined or the corresponding object is not
mapped to a native visual object.getVisualID in interface VisualIDHolderNativeWindowException - if type is neither
INTRINSIC nor NATIVE
and does not match the native implementation.public static String toHexString(int val)
public static String toHexString(long val)
Copyright 2010 JogAmp Community.