public class AWTGraphicsConfiguration extends DefaultGraphicsConfiguration implements Cloneable
VisualIDHolder.VIDComparator, VisualIDHolder.VIDType
VID_UNDEFINED
Constructor and Description |
---|
AWTGraphicsConfiguration(AWTGraphicsScreen screen,
CapabilitiesImmutable capsChosen,
CapabilitiesImmutable capsRequested,
GraphicsConfiguration config,
AbstractGraphicsConfiguration encapsulated) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
static AWTGraphicsConfiguration |
create(Component awtComp,
CapabilitiesImmutable capsChosen,
CapabilitiesImmutable capsRequested) |
GraphicsConfiguration |
getAWTGraphicsConfiguration()
Return the AWT
GraphicsConfiguration . |
AbstractGraphicsConfiguration |
getNativeGraphicsConfiguration()
In case the implementation utilizes a delegation pattern to wrap abstract toolkits,
this method shall return the native
AbstractGraphicsConfiguration ,
otherwise this instance. |
void |
setChosenCapabilities(CapabilitiesImmutable capsChosen)
Set the capabilities to a new value.
|
static CapabilitiesImmutable |
setupCapabilitiesRGBABits(CapabilitiesImmutable capabilitiesIn,
GraphicsConfiguration gc)
Sets up the Capabilities' RGBA size based on the given GraphicsConfiguration's ColorModel.
|
String |
toString() |
getChosenCapabilities, getRequestedCapabilities, getScreen, getVisualID, toHexString, toHexString
public AWTGraphicsConfiguration(AWTGraphicsScreen screen, CapabilitiesImmutable capsChosen, CapabilitiesImmutable capsRequested, GraphicsConfiguration config, AbstractGraphicsConfiguration encapsulated)
public static AWTGraphicsConfiguration create(Component awtComp, CapabilitiesImmutable capsChosen, CapabilitiesImmutable capsRequested)
capsChosen
- if null, capsRequested
is copied and aligned
with the graphics Capabilities
of the AWT Component to produce the chosen Capabilities
.
Otherwise the capsChosen
is used.capsRequested
- if null, default Capabilities
are used, otherwise the given values.public void setChosenCapabilities(CapabilitiesImmutable capsChosen)
DefaultGraphicsConfiguration
The use case for setting the Capabilities at a later time is a change or re-validation of capabilities.
com.jogamp.nativewindow.GraphicsConfigurationFactory#chooseGraphicsConfiguration(Capabilities, CapabilitiesChooser, AbstractGraphicsScreen)
public Object clone()
clone
in interface AbstractGraphicsConfiguration
clone
in class DefaultGraphicsConfiguration
public GraphicsConfiguration getAWTGraphicsConfiguration()
GraphicsConfiguration
.public AbstractGraphicsConfiguration getNativeGraphicsConfiguration()
AbstractGraphicsConfiguration
AbstractGraphicsConfiguration
,
otherwise this instance.getNativeGraphicsConfiguration
in interface AbstractGraphicsConfiguration
getNativeGraphicsConfiguration
in class DefaultGraphicsConfiguration
NativeSurface.getGraphicsConfiguration()
public static CapabilitiesImmutable setupCapabilitiesRGBABits(CapabilitiesImmutable capabilitiesIn, GraphicsConfiguration gc)
capabilities
- the Capabilities object whose red, green, blue, and alpha bits will be setgc
- the GraphicsConfiguration from which to derive the RGBA bit depthspublic String toString()
toString
in class DefaultGraphicsConfiguration
Copyright 2010 JogAmp Community.