| Modifier and Type | Field and Description |
|---|---|
| private final GraphicsDevice | |
| private final AffineTransform | |
| private final int | |
| private final int | |
| pack-priv static ColorModel |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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 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 | |
| deviceTransform | back to summary |
|---|---|
| private final AffineTransform deviceTransform | |
| pageHeight | back to summary |
|---|---|
| private final int pageHeight | |
| pageWidth | back to summary |
|---|---|
| private final int pageWidth | |
| theModel | back to summary |
|---|---|
| pack-priv static ColorModel theModel | |
| PrinterGraphicsConfig | back to summary |
|---|---|
| public PrinterGraphicsConfig(String printerID, AffineTransform deviceTx, int pageWid, int pageHgt) | |
| 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.
| |
| 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.
| |