|
xmlgraphics-commons 2.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.GraphicsConfiguration
org.apache.xmlgraphics.java2d.AbstractGraphicsConfiguration
org.apache.xmlgraphics.java2d.GraphicsConfigurationWithTransparency
public class GraphicsConfigurationWithTransparency
An implementation of GraphicsConfiguration
that supports transparencies (alpha
channels).
Constructor Summary | |
---|---|
GraphicsConfigurationWithTransparency()
|
Method Summary | |
---|---|
BufferedImage |
createCompatibleImage(int width,
int height)
Construct a buffered image with an alpha channel. |
BufferedImage |
createCompatibleImage(int width,
int height,
int transparency)
Construct a buffered image with an alpha channel, unless transparency is OPAQUE (no alpha at all). |
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...). |
ColorModel |
getColorModel()
Return a good default color model for this 'device'. |
ColorModel |
getColorModel(int transparency)
Return a good color model given transparency |
AffineTransform |
getDefaultTransform()
The default transform (1:1). |
GraphicsDevice |
getDevice()
Return our dummy instance of GraphicsDevice |
AffineTransform |
getNormalizingTransform()
The normalizing transform (1:1) (since we currently render images at 72dpi, which we might want to change in the future). |
Methods inherited from class org.apache.xmlgraphics.java2d.AbstractGraphicsConfiguration |
---|
createCompatibleVolatileImage, createCompatibleVolatileImage |
Methods inherited from class java.awt.GraphicsConfiguration |
---|
createCompatibleVolatileImage, createCompatibleVolatileImage, getBufferCapabilities, getImageCapabilities |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphicsConfigurationWithTransparency()
Method Detail |
---|
public BufferedImage createCompatibleImage(int width, int height, int transparency)
createCompatibleImage
in class GraphicsConfiguration
width
- the width of the imageheight
- the height of the imagetransparency
- the alpha value of the image
public BufferedImage createCompatibleImage(int width, int height)
createCompatibleImage
in class GraphicsConfiguration
width
- the width of the imageheight
- the height of the image
public Rectangle getBounds()
getBounds
in class GraphicsConfiguration
public ColorModel getColorModel()
getColorModel
in class GraphicsConfiguration
public ColorModel getColorModel(int transparency)
transparency
getColorModel
in class GraphicsConfiguration
transparency
- the alpha value for the colour model
public AffineTransform getDefaultTransform()
getDefaultTransform
in class GraphicsConfiguration
public AffineTransform getNormalizingTransform()
getNormalizingTransform
in class GraphicsConfiguration
public GraphicsDevice getDevice()
getDevice
in class GraphicsConfiguration
|
xmlgraphics-commons 2.0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |