public class AWTGraphicsConfiguration extends DefaultGraphicsConfiguration implements Cloneable
VisualIDHolder.VIDComparator, VisualIDHolder.VIDTypeVID_UNDEFINED| Constructor and Description |
|---|
AWTGraphicsConfiguration(AWTGraphicsScreen screen,
CapabilitiesImmutable capsChosen,
CapabilitiesImmutable capsRequested,
GraphicsConfiguration config,
AbstractGraphicsConfiguration encapsulated) |
getChosenCapabilities, getRequestedCapabilities, getScreen, getVisualID, toHexString, toHexStringpublic AWTGraphicsConfiguration(AWTGraphicsScreen screen, CapabilitiesImmutable capsChosen, CapabilitiesImmutable capsRequested, GraphicsConfiguration config, AbstractGraphicsConfiguration encapsulated)
public static AWTGraphicsConfiguration create(Component awtComp, CapabilitiesImmutable capsChosen, CapabilitiesImmutable capsRequested)
create(GraphicsConfiguration, CapabilitiesImmutable, CapabilitiesImmutable)
Method constructs a new AWTGraphicsConfiguration primarily based
on the given Component's GraphicsConfiguration.awtComp - the Component, which GraphicsConfiguration is used for the resulting AWTGraphicsConfigurationcapsChosen - 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 static AWTGraphicsConfiguration create(GraphicsConfiguration gc, CapabilitiesImmutable capsChosen, CapabilitiesImmutable capsRequested)
AWTGraphicsConfiguration primarily based
on the given GraphicsConfiguration.gc - the GraphicsConfiguration for the resulting AWTGraphicsConfigurationcapsChosen - 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)
DefaultGraphicsConfigurationThe 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 AbstractGraphicsConfigurationclone in class DefaultGraphicsConfigurationpublic GraphicsConfiguration getAWTGraphicsConfiguration()
GraphicsConfiguration.public AbstractGraphicsConfiguration getNativeGraphicsConfiguration()
AbstractGraphicsConfigurationAbstractGraphicsConfiguration,
otherwise this instance.getNativeGraphicsConfiguration in interface AbstractGraphicsConfigurationgetNativeGraphicsConfiguration in class DefaultGraphicsConfigurationNativeSurface.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 DefaultGraphicsConfigurationCopyright 2010 JogAmp Community.