| java.lang.Object java.awt.GraphicsConfiguration sun.awt.Win32GraphicsConfig
All known Subclasses: sun.java2d.opengl.WGLGraphicsConfig,
Win32GraphicsConfig | public class Win32GraphicsConfig extends GraphicsConfiguration implements DisplayChangedListener,SurfaceManager.ProxiedGraphicsConfig(Code) | | This is an implementation of a GraphicsConfiguration object for a
single Win32 visual.
See Also: GraphicsEnvironment See Also: GraphicsDevice version: 10 Feb 1997 |
Method Summary | |
public void | assertOperationSupported(Component target, int numBuffers, BufferCapabilities caps) Checks that the requested configuration is natively supported; if not,
an AWTException is thrown. | 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 VolatileImage | createBackBuffer(WComponentPeer peer) Creates a backbuffer for the given peer and returns the image wrapper. | public SurfaceData | createSurfaceData(WComponentPeer peer, int numBackBuffers) Creates a new SurfaceData that will be associated with the given
WComponentPeer. | public synchronized void | displayChanged() | public void | flip(WComponentPeer peer, Component target, VolatileImage backBuffer, BufferCapabilities.FlipContents flipAction) Performs the native flip operation for the given target Component. | 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 static Win32GraphicsConfig | getConfig(Win32GraphicsDevice device, int pixFormatID) Returns a Win32GraphicsConfiguration object with the given device
and PixelFormat. | public AffineTransform | getDefaultTransform() Returns the default Transform for this configuration. | public GraphicsDevice | getDevice() Return the graphics device associated with this configuration. | public ColorModel | getDeviceColorModel() Returns a new color model for 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.
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. | public Object | getProxyKey() | public synchronized RenderLoops | getSolidLoops(SurfaceType stype) | public static ColorModel | getTranslucentColorModel() | public int | getVisual() | public void | paletteChanged() | public String | toString() |
solidloops | protected RenderLoops solidloops(Code) | | |
visual | protected int visual(Code) | | |
assertOperationSupported | public void assertOperationSupported(Component target, int numBuffers, BufferCapabilities caps) throws AWTException(Code) | | Checks that the requested configuration is natively supported; if not,
an AWTException is thrown.
|
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.
|
createSurfaceData | public SurfaceData createSurfaceData(WComponentPeer peer, int numBackBuffers)(Code) | | Creates a new SurfaceData that will be associated with the given
WComponentPeer.
|
displayChanged | public synchronized void displayChanged()(Code) | | |
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.
|
getConfig | public static Win32GraphicsConfig getConfig(Win32GraphicsDevice device, int pixFormatID)(Code) | | Returns a Win32GraphicsConfiguration object with the given device
and PixelFormat. Note that this method does NOT check to ensure that
the returned Win32GraphicsConfig will correctly support rendering into a
Java window. This method is provided so that client code can do its
own checking as to the appropriateness of a particular PixelFormat.
Safer access to Win32GraphicsConfigurations is provided by
Win32GraphicsDevice.getConfigurations().
|
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.
|
getDevice | public GraphicsDevice getDevice()(Code) | | Return the graphics device associated with this configuration.
|
getDeviceColorModel | public ColorModel getDeviceColorModel()(Code) | | Returns a new color model for this configuration. This call
is only used internally, by images and components that are
associated with the graphics device. When attributes of that
device change (for example, when the device palette is updated),
then this device-based color model will be updated internally
to reflect the new situation.
|
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) | | |
getTranslucentColorModel | public static ColorModel getTranslucentColorModel()(Code) | | |
getVisual | public int getVisual()(Code) | | Return the PixelFormatIndex this GraphicsConfig uses
|
paletteChanged | public void paletteChanged()(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)
|
|
|