| java.lang.Object java.awt.GraphicsConfiguration sun.awt.X11GraphicsConfig
All known Subclasses: sun.java2d.opengl.GLXGraphicsConfig,
X11GraphicsConfig | public class X11GraphicsConfig extends GraphicsConfiguration implements SurfaceManager.ProxiedGraphicsConfig(Code) | | This is an implementation of a GraphicsConfiguration object for a
single X11 visual.
See Also: GraphicsEnvironment See Also: GraphicsDevice version: 1.77, 05/05/07 |
Method Summary | |
public Image | createAcceleratedImage(Component target, int width, int height) Creates a new hidden-acceleration image of the given width and height
that is associated with the target Component. | public long | createBackBuffer(X11ComponentPeer peer, int numBuffers, BufferCapabilities caps) Attempts to create an XDBE-based backbuffer for the given peer. | public VolatileImage | createBackBufferImage(Component target, long backBuffer) Creates a VolatileImage that essentially wraps the target Component's
backbuffer, using the provided backbuffer handle. | public SurfaceData | createSurfaceData(X11ComponentPeer peer) Creates a new SurfaceData that will be associated with the given
X11ComponentPeer. | native public void | destroyBackBuffer(long backBuffer) Destroys the backbuffer object represented by the given handle value. | public void | flip(X11ComponentPeer peer, Component target, VolatileImage xBackBuffer, BufferCapabilities.FlipContents flipAction) Performs the native XDBE flip operation for the given target Component. | public long | getAData() | public int | getBitsPerPixel() | public Rectangle | getBounds() | public BufferCapabilities | getBufferCapabilities() | public synchronized ColorModel | getColorModel() Returns the color model associated with this configuration. | public ColorModel | getColorModel(int transparency) Returns the color model associated with this configuration that
supports the specified transparency. | public int | getColormap() Returns the colormap associated with this configuration. | public static X11GraphicsConfig | getConfig(X11GraphicsDevice device, int visualnum, int depth, int colormap, boolean doubleBuffer) | public static X11GraphicsConfig | getConfig(X11GraphicsDevice device, int visualnum, int depth, int colormap, int type) | public AffineTransform | getDefaultTransform() Returns the default Transform for this configuration. | public int | getDepth() Returns the depth associated with this configuration. | public GraphicsDevice | getDevice() Return the graphics device associated with this configuration. | public ImageCapabilities | getImageCapabilities() | public AffineTransform | getNormalizingTransform() Returns a Transform that can be composed with the default Transform
of a Graphics2D so that 72 units in user space will equal 1 inch
in device space. | public Object | getProxyKey() | public synchronized RenderLoops | getSolidLoops(SurfaceType stype) Return the RenderLoops this type of destination uses for
solid fills and strokes. | public synchronized SurfaceType | getSurfaceType() | public int | getVisual() Returns the visual id associated with this configuration. | public boolean | isDoubleBuffered() | native public Rectangle | pGetBounds(int screenNum) | public String | toString() |
bitsPerPixel | protected int bitsPerPixel(Code) | | |
doubleBuffer | boolean doubleBuffer(Code) | | |
solidloops | public RenderLoops solidloops(Code) | | |
surfaceType | protected SurfaceType surfaceType(Code) | | |
visual | protected int visual(Code) | | |
X11GraphicsConfig | protected X11GraphicsConfig(X11GraphicsDevice device, int visualnum, int depth, int colormap, boolean doubleBuffer)(Code) | | |
createAcceleratedImage | public Image createAcceleratedImage(Component target, int width, int height)(Code) | | Creates a new hidden-acceleration image of the given width and height
that is associated with the target Component.
|
createBackBuffer | public long createBackBuffer(X11ComponentPeer peer, int numBuffers, BufferCapabilities caps) throws AWTException(Code) | | Attempts to create an XDBE-based backbuffer for the given peer. If
the requested configuration is not natively supported, an AWTException
is thrown. Otherwise, if the backbuffer creation is successful, a
handle to the native backbuffer is returned.
|
createBackBufferImage | public VolatileImage createBackBufferImage(Component target, long backBuffer)(Code) | | Creates a VolatileImage that essentially wraps the target Component's
backbuffer, using the provided backbuffer handle.
|
createSurfaceData | public SurfaceData createSurfaceData(X11ComponentPeer peer)(Code) | | Creates a new SurfaceData that will be associated with the given
X11ComponentPeer.
|
destroyBackBuffer | native public void destroyBackBuffer(long backBuffer)(Code) | | Destroys the backbuffer object represented by the given handle value.
|
getAData | public long getAData()(Code) | | |
getBitsPerPixel | public int getBitsPerPixel()(Code) | | Returns a number of bits allocated per pixel
(might be different from depth)
|
getColorModel | public synchronized ColorModel getColorModel()(Code) | | Returns the color model associated with this configuration.
|
getColorModel | public ColorModel getColorModel(int transparency)(Code) | | Returns the color model associated with this configuration that
supports the specified transparency.
|
getColormap | public int getColormap()(Code) | | Returns the colormap associated with this configuration.
|
getDefaultTransform | public AffineTransform getDefaultTransform()(Code) | | Returns the default Transform for this configuration. This
Transform is typically the Identity transform for most normal
screens. Device coordinates for screen and printer devices will
have the origin in the upper left-hand corner of the target region of
the device, with X coordinates
increasing to the right and Y coordinates increasing downwards.
For image buffers, this Transform will be the Identity transform.
|
getDepth | public int getDepth()(Code) | | Returns the depth associated with this configuration.
|
getDevice | public GraphicsDevice getDevice()(Code) | | Return the graphics device associated with this configuration.
|
getNormalizingTransform | public AffineTransform getNormalizingTransform()(Code) | | Returns a Transform that can be composed with the default Transform
of a Graphics2D so that 72 units in user space will equal 1 inch
in device space.
Given a Graphics2D, g, one can reset the transformation to create
such a mapping by using the following pseudocode:
GraphicsConfiguration gc = g.getGraphicsConfiguration();
g.setTransform(gc.getDefaultTransform());
g.transform(gc.getNormalizingTransform());
Note that sometimes this Transform will be identity (e.g. for
printers or metafile output) and that this Transform is only
as accurate as the information supplied by the underlying system.
For image buffers, this Transform will be the Identity transform,
since there is no valid distance measurement.
|
getSolidLoops | public synchronized RenderLoops getSolidLoops(SurfaceType stype)(Code) | | Return the RenderLoops this type of destination uses for
solid fills and strokes.
|
getSurfaceType | public synchronized SurfaceType getSurfaceType()(Code) | | |
getVisual | public int getVisual()(Code) | | Returns the visual id associated with this configuration.
|
isDoubleBuffered | public boolean isDoubleBuffered()(Code) | | |
Methods inherited from java.awt.GraphicsConfiguration | public BufferedImage createCompatibleImage(int width, int height)(Code)(Java Doc) public BufferedImage createCompatibleImage(int width, int height, int transparency)(Code)(Java Doc) public VolatileImage createCompatibleVolatileImage(int width, int height)(Code)(Java Doc) public VolatileImage createCompatibleVolatileImage(int width, int height, int transparency)(Code)(Java Doc) public VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps) throws AWTException(Code)(Java Doc) public VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency) throws AWTException(Code)(Java Doc) abstract public Rectangle getBounds()(Code)(Java Doc) public BufferCapabilities getBufferCapabilities()(Code)(Java Doc) abstract public ColorModel getColorModel()(Code)(Java Doc) abstract public ColorModel getColorModel(int transparency)(Code)(Java Doc) abstract public AffineTransform getDefaultTransform()(Code)(Java Doc) abstract public GraphicsDevice getDevice()(Code)(Java Doc) public ImageCapabilities getImageCapabilities()(Code)(Java Doc) abstract public AffineTransform getNormalizingTransform()(Code)(Java Doc)
|
|
|