|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.GraphicsConfiguration
GraphicsEnvironment
,
GraphicsDevice
Constructor Summary | |
GraphicsConfiguration()
This is an abstract class that cannot be instantiated directly. |
Method Summary | |
abstract BufferedImage | createCompatibleImage(int width,
int height,
int transparency)
Returns a BufferedImage that supports the specified transparency and has data layout and color model compatible with this graphics configuration. |
abstract BufferedImage | createCompatibleImage(int width,
int height)
Returns a BufferedImage with data layout and color model compatible with this graphics configuration. |
abstract ColorModel | getColorModel()
Returns the color model associated with this configuration. |
abstract ColorModel | getColorModel(int transparency)
Returns the color model associated with this configuration that supports the specified transparency. |
abstract AffineTransform | getDefaultTransform()
Returns the default Transform for this configuration. |
abstract GraphicsDevice | getDevice()
Return the graphics device associated with this configuration. |
abstract AffineTransform | getNormalizingTransform()
Returns a Transform that can be concatenated with the default Transform of a GraphicsConfiguration so that 72 units in user space will equal 1 inch in device space. |
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(java.awt.GraphicsConfigTemplate)
,
Graphics2D.getDeviceConfiguration()
Method Detail |
public abstract GraphicsDevice getDevice()
public abstract BufferedImage createCompatibleImage(int width, int height)
public abstract BufferedImage createCompatibleImage(int width, int height, int transparency)
Transparency.OPAQUE
,
Transparency.BITMASK
,
Transparency.TRANSLUCENT
public abstract ColorModel getColorModel()
public abstract ColorModel getColorModel(int transparency)
public abstract AffineTransform getDefaultTransform()
public abstract AffineTransform getNormalizingTransform()
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 not associated with a device (e.g. not created by GraphicsConfiguration.createCompatibleImage()), this Transform will be the Identity transform since there is no valid distance measurement.
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |