| Modifier and Type | Field and Description |
|---|---|
| private final GraphicsDevice | |
| private final ColorModel | |
| private static final int | |
| private final Raster | |
| private static BufferedImageGraphicsConfig[] | |
| private final double | |
| private final double | |
| private static BufferedImageGraphicsConfig[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BufferedImage | createCompatibleImage(int width, int height)
Overrides java. Returns a BufferedImage with channel layout and color model compatible with this graphics configuration. |
| public Rectangle | getBounds()
Implements abstract java. Returns the bounds of the |
| public ColorModel | getColorModel()
Implements abstract java. Returns the color model associated with this configuration. |
| public ColorModel | getColorModel(int transparency)
Implements abstract java. Returns the color model associated with this configuration that supports the specified transparency. |
| public static BufferedImageGraphicsConfig | |
| public static BufferedImageGraphicsConfig | |
| public AffineTransform | getDefaultTransform()
Implements abstract java. Returns the default Transform for this configuration. |
| public GraphicsDevice | getDevice()
Implements abstract java. Return the graphics device associated with this configuration. |
| public AffineTransform | getNormalizingTransform()
Implements abstract java. 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. |
| device | back to summary |
|---|---|
| private final GraphicsDevice device | |
| model | back to summary |
|---|---|
| private final ColorModel model | |
| numconfigs | back to summary |
|---|---|
| private static final int numconfigs | |
| raster | back to summary |
|---|---|
| private final Raster raster | |
| scaledConfigs | back to summary |
|---|---|
| private static BufferedImageGraphicsConfig[] scaledConfigs | |
| scaleX | back to summary |
|---|---|
| private final double scaleX | |
| scaleY | back to summary |
|---|---|
| private final double scaleY | |
| standardConfigs | back to summary |
|---|---|
| private static BufferedImageGraphicsConfig[] standardConfigs | |
| BufferedImageGraphicsConfig | back to summary |
|---|---|
| public BufferedImageGraphicsConfig(BufferedImage bufImg, Component comp, double scaleX, double scaleY) | |
| createCompatibleImage | back to summary |
|---|---|
| public BufferedImage createCompatibleImage(int width, int height) Overrides java. Returns a BufferedImage with channel layout and color model compatible with this graphics configuration. This method has nothing to do with memory-mapping a device. This BufferedImage has a layout and color model that is closest to this native device configuration and thus can be optimally blitted to this device.
| |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Implements abstract java. Doc from java. Returns the bounds of the
| |
| getColorModel | back to summary |
|---|---|
| public ColorModel getColorModel() Implements abstract java. Returns the color model associated with this configuration.
| |
| getColorModel | back to summary |
|---|---|
| public ColorModel getColorModel(int transparency) Implements abstract java. Returns the color model associated with this configuration that supports the specified transparency.
| |
| getConfig | back to summary |
|---|---|
| public static BufferedImageGraphicsConfig getConfig(BufferedImage bImg) | |
| getConfig | back to summary |
|---|---|
| public static BufferedImageGraphicsConfig getConfig(BufferedImage bImg, double scaleX, double scaleY) | |
| getDefaultTransform | back to summary |
|---|---|
| public AffineTransform getDefaultTransform() Implements abstract java. 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 | back to summary |
|---|---|
| public GraphicsDevice getDevice() Implements abstract java. Return the graphics device associated with this configuration.
| |
| getNormalizingTransform | back to summary |
|---|---|
| public AffineTransform getNormalizingTransform() Implements abstract java. 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.
| |