|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.GraphicsConfiguration
public abstract class GraphicsConfiguration
This class describes the configuration of various graphics devices, such as a monitor or printer. Different configurations may exist for the same device, according to the different native modes supported.
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
Constructor Summary | |
---|---|
protected |
GraphicsConfiguration()
The default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GraphicsConfiguration()
GraphicsDevice.getConfigurations()
,
GraphicsDevice.getDefaultConfiguration()
,
GraphicsDevice.getBestConfiguration(GraphicsConfigTemplate)
,
Graphics2D.getDeviceConfiguration()
Method Detail |
---|
public abstract GraphicsDevice getDevice()
public abstract BufferedImage createCompatibleImage(int w, int h)
w
- the width of the bufferh
- the height of the buffer
public abstract VolatileImage createCompatibleVolatileImage(int w, int h)
w
- the width of the bufferh
- the height of the buffer
Component.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 buffer
AWTException
- 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 buffer
public 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 transparency
AWTException
- 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 buffer
Transparency.OPAQUE
,
Transparency.BITMASK
,
Transparency.TRANSLUCENT
public abstract ColorModel getColorModel()
public abstract ColorModel getColorModel(int transparency)
transparency
- the transparency of the model
Transparency.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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |