java.awt
public abstract class GraphicsConfiguration extends Object
Virtual devices are supported (for example, in a multiple screen environment, a virtual device covers all screens simultaneously); the configuration will have a non-zero relative coordinate system in such a case.
Window
,
Frame
,
GraphicsEnvironment
,
GraphicsDevice
Modifier | Constructor and Description |
---|---|
protected |
GraphicsConfiguration()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract BufferedImage |
createCompatibleImage(int w,
int h)
Returns a buffered image optimized to this device, so that blitting can
be supported in the buffered image.
|
abstract BufferedImage |
createCompatibleImage(int w,
int h,
int transparency)
Returns a buffered image optimized to this device, and with the specified
transparency, so that blitting can be supported in the buffered image.
|
abstract VolatileImage |
createCompatibleVolatileImage(int w,
int h)
Returns a buffered volatile image optimized to this device, so that
blitting can be supported in the buffered image.
|
VolatileImage |
createCompatibleVolatileImage(int w,
int h,
ImageCapabilities caps)
Returns a buffered volatile image optimized to this device, and with the
given capabilities, so that blitting can be supported in the buffered
image.
|
VolatileImage |
createCompatibleVolatileImage(int width,
int height,
ImageCapabilities caps,
int transparency)
Creates a volatile image with the specified capabilities and transparency.
|
abstract VolatileImage |
createCompatibleVolatileImage(int width,
int height,
int transparency)
Returns a buffered volatile image optimized to this device, and
with the given transparency.
|
abstract Rectangle |
getBounds()
Returns the bounds of the configuration, in device coordinates.
|
BufferCapabilities |
getBufferCapabilities()
Returns the buffering capabilities of this configuration.
|
abstract ColorModel |
getColorModel()
Gets the color model of the corresponding device.
|
abstract ColorModel |
getColorModel(int transparency)
Gets a color model for the corresponding device which supports the desired
transparency level.
|
abstract AffineTransform |
getDefaultTransform()
Returns a transform that maps user coordinates to device coordinates.
|
abstract GraphicsDevice |
getDevice()
Gets the associated device that this configuration describes.
|
ImageCapabilities |
getImageCapabilities()
Returns the imaging capabilities of this configuration.
|
abstract AffineTransform |
getNormalizingTransform()
Returns a transform that maps user coordinates to device coordinates.
|
protected GraphicsConfiguration()
public abstract GraphicsDevice getDevice()
public abstract BufferedImage createCompatibleImage(int w, int h)
w
- the width of the bufferh
- the height of the bufferpublic abstract VolatileImage createCompatibleVolatileImage(int w, int h)
w
- the width of the bufferh
- the height of the bufferComponent.createVolatileImage(int, int)
public VolatileImage createCompatibleVolatileImage(int w, int h, ImageCapabilities caps) throws AWTException
w
- the width of the bufferh
- the height of the buffercaps
- the desired capabilities of the image bufferAWTException
- if the capabilities cannot be metpublic abstract VolatileImage createCompatibleVolatileImage(int width, int height, int transparency)
width
- the width of the bufferheight
- the height of the buffertransparency
- the transparency value for the bufferpublic VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency) throws AWTException
width
- the width of the imageheight
- the height of the imagecaps
- the requested capabilitiestransparency
- the required transparencyAWTException
- if the required capabilities and transparency cannot
be metpublic abstract BufferedImage createCompatibleImage(int w, int h, int transparency)
w
- the width of the bufferh
- the height of the buffertransparency
- the transparency of the bufferTransparency.OPAQUE
,
Transparency.BITMASK
,
Transparency.TRANSLUCENT
public abstract ColorModel getColorModel()
public abstract ColorModel getColorModel(int transparency)
transparency
- the transparency of the modelTransparency.OPAQUE
,
Transparency.BITMASK
,
Transparency.TRANSLUCENT
public abstract AffineTransform getDefaultTransform()
getNormalizingTransform()
public abstract AffineTransform getNormalizingTransform()
getDefaultTransform()
public abstract Rectangle getBounds()
public BufferCapabilities getBufferCapabilities()
public ImageCapabilities getImageCapabilities()