|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.nativewindow.DefaultGraphicsConfiguration
javax.media.nativewindow.awt.AWTGraphicsConfiguration
public class AWTGraphicsConfiguration
A wrapper for an AWT GraphicsConfiguration allowing it to be handled in a toolkit-independent manner.
| Constructor Summary | |
|---|---|
AWTGraphicsConfiguration(AWTGraphicsScreen screen,
CapabilitiesImmutable capsChosen,
CapabilitiesImmutable capsRequested,
GraphicsConfiguration config,
AbstractGraphicsConfiguration encapsulated)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class javax.media.nativewindow.DefaultGraphicsConfiguration |
|---|
getChosenCapabilities, getRequestedCapabilities, getScreen, toHexString, toHexString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AWTGraphicsConfiguration(AWTGraphicsScreen screen,
CapabilitiesImmutable capsChosen,
CapabilitiesImmutable capsRequested,
GraphicsConfiguration config,
AbstractGraphicsConfiguration encapsulated)
| Method Detail |
|---|
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.public void setChosenCapabilities(CapabilitiesImmutable capsChosen)
DefaultGraphicsConfiguration
javax.media.nativewindow.GraphicsConfigurationFactory#chooseGraphicsConfiguration(Capabilities, CapabilitiesChooser, AbstractGraphicsScreen)public Object clone()
clone 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 depths
public String toString()
toString in class DefaultGraphicsConfiguration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||