public class DefaultGraphicsConfiguration extends Object implements Cloneable, AbstractGraphicsConfiguration
VisualIDHolder.VIDComparator, VisualIDHolder.VIDType
VID_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 Object clone()
clone
in interface AbstractGraphicsConfiguration
clone
in class Object
public final AbstractGraphicsScreen getScreen()
AbstractGraphicsConfiguration
getScreen
in interface AbstractGraphicsConfiguration
public final CapabilitiesImmutable getChosenCapabilities()
AbstractGraphicsConfiguration
getChosenCapabilities
in interface AbstractGraphicsConfiguration
public final CapabilitiesImmutable getRequestedCapabilities()
AbstractGraphicsConfiguration
getRequestedCapabilities
in interface AbstractGraphicsConfiguration
public AbstractGraphicsConfiguration getNativeGraphicsConfiguration()
AbstractGraphicsConfiguration
AbstractGraphicsConfiguration
,
otherwise this instance.getNativeGraphicsConfiguration
in interface AbstractGraphicsConfiguration
NativeSurface.getGraphicsConfiguration()
public final int getVisualID(VisualIDHolder.VIDType type) throws NativeWindowException
VisualIDHolder
type
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_UNDEFINED
EGL_CONFIG
, WIN32_PFD
INTRINSIC
: X11 XVisual IDNATIVE
: X11 XVisual IDX11_XVISUAL
: X11 XVisual IDX11_FBCONFIG
: X11 FBConfig ID or VID_UNDEFINED
EGL_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 VisualIDHolder
NativeWindowException
- 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.