javax.media.nativewindow.awt
Class AWTGraphicsConfiguration
java.lang.Object
javax.media.nativewindow.DefaultGraphicsConfiguration
javax.media.nativewindow.awt.AWTGraphicsConfiguration
- All Implemented Interfaces:
- Cloneable, AbstractGraphicsConfiguration
public class AWTGraphicsConfiguration
- extends DefaultGraphicsConfiguration
- implements Cloneable
A wrapper for an AWT GraphicsConfiguration allowing it to be
handled in a toolkit-independent manner.
AWTGraphicsConfiguration
public AWTGraphicsConfiguration(AWTGraphicsScreen screen,
Capabilities capsChosen,
Capabilities capsRequested,
GraphicsConfiguration config,
AbstractGraphicsConfiguration encapsulated)
AWTGraphicsConfiguration
public AWTGraphicsConfiguration(AWTGraphicsScreen screen,
Capabilities capsChosen,
Capabilities capsRequested,
GraphicsConfiguration config)
clone
public Object clone()
- Overrides:
clone
in class DefaultGraphicsConfiguration
getGraphicsConfiguration
public GraphicsConfiguration getGraphicsConfiguration()
getNativeGraphicsConfiguration
public AbstractGraphicsConfiguration getNativeGraphicsConfiguration()
- Description copied from interface:
AbstractGraphicsConfiguration
- In case this instance already reflects a native configuration,
return this one.
Otherwise return the encapsuled native configuration,
as it shall be included e.g. in the AWT case.
- Specified by:
getNativeGraphicsConfiguration
in interface AbstractGraphicsConfiguration
- Overrides:
getNativeGraphicsConfiguration
in class DefaultGraphicsConfiguration
setupCapabilitiesRGBABits
public static Capabilities setupCapabilitiesRGBABits(Capabilities capabilities,
GraphicsConfiguration gc)
- Sets up the Capabilities' RGBA size based on the given GraphicsConfiguration's ColorModel.
- Parameters:
capabilities
- the Capabilities object whose red, green, blue, and alpha bits will be setgc
- the GraphicsConfiguration from which to derive the RGBA bit depths
- Returns:
- the passed Capabilities
toString
public String toString()
- Overrides:
toString
in class DefaultGraphicsConfiguration
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.