public class AFPGraphicsConfiguration extends GraphicsConfiguration
Constructor and Description |
---|
AFPGraphicsConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
createCompatibleImage(int width,
int height)
Construct a buffered image with an alpha channel.
|
java.awt.image.BufferedImage |
createCompatibleImage(int width,
int height,
int transparency)
Construct a buffered image with an alpha channel, unless
transparencty is OPAQUE (no alpha at all).
|
java.awt.Rectangle |
getBounds()
TODO: This should return the page bounds in Pts,
I couldn't figure out how to get this for the current
page (this still works for now,
but it should be fixed...).
|
java.awt.image.ColorModel |
getColorModel()
Return a good default color model for this 'device'.
|
java.awt.image.ColorModel |
getColorModel(int transparency)
Return a good color model given
transparency |
java.awt.geom.AffineTransform |
getDefaultTransform()
The default transform (1:1).
|
java.awt.GraphicsDevice |
getDevice() |
java.awt.geom.AffineTransform |
getNormalizingTransform()
The normalizing transform (1:1) (since we currently
render images at 72dpi, which we might want to change
in the future).
|
createCompatibleVolatileImage, createCompatibleVolatileImage
public java.awt.image.BufferedImage createCompatibleImage(int width, int height, int transparency)
createCompatibleImage
in class java.awt.GraphicsConfiguration
width
- the width of the imageheight
- the height of the imagetransparency
- the alpha value of the imagepublic java.awt.image.BufferedImage createCompatibleImage(int width, int height)
createCompatibleImage
in class java.awt.GraphicsConfiguration
width
- the width of the imageheight
- the height of the imagepublic java.awt.Rectangle getBounds()
getBounds
in class java.awt.GraphicsConfiguration
public java.awt.image.ColorModel getColorModel()
getColorModel
in class java.awt.GraphicsConfiguration
public java.awt.image.ColorModel getColorModel(int transparency)
transparency
getColorModel
in class java.awt.GraphicsConfiguration
transparency
- the alpha value for the colour modelpublic java.awt.geom.AffineTransform getDefaultTransform()
getDefaultTransform
in class java.awt.GraphicsConfiguration
public java.awt.geom.AffineTransform getNormalizingTransform()
getNormalizingTransform
in class java.awt.GraphicsConfiguration
public java.awt.GraphicsDevice getDevice()
getDevice
in class java.awt.GraphicsConfiguration
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.