|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.GraphicsConfiguration
org.apache.fop.svg.GraphicsConfiguration
org.apache.fop.afp.svg.AFPGraphicsConfiguration
public class AFPGraphicsConfiguration
Our implementation of the class that returns information about roughly what we can handle and want to see (alpha for example).
| Constructor Summary | |
|---|---|
AFPGraphicsConfiguration()
|
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class org.apache.fop.svg.GraphicsConfiguration |
|---|
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 AFPGraphicsConfiguration()
| Method Detail |
|---|
public java.awt.image.BufferedImage createCompatibleImage(int width,
int height,
int transparency)
createCompatibleImage in class java.awt.GraphicsConfigurationwidth - the width of the imageheight - the height of the imagetransparency - the alpha value of the image
public java.awt.image.BufferedImage createCompatibleImage(int width,
int height)
createCompatibleImage in class java.awt.GraphicsConfigurationwidth - the width of the imageheight - the height of the image
public java.awt.Rectangle getBounds()
getBounds in class java.awt.GraphicsConfigurationpublic java.awt.image.ColorModel getColorModel()
getColorModel in class java.awt.GraphicsConfigurationpublic java.awt.image.ColorModel getColorModel(int transparency)
transparency
getColorModel in class java.awt.GraphicsConfigurationtransparency - the alpha value for the colour model
public java.awt.geom.AffineTransform getDefaultTransform()
getDefaultTransform in class java.awt.GraphicsConfigurationpublic java.awt.geom.AffineTransform getNormalizingTransform()
getNormalizingTransform in class java.awt.GraphicsConfigurationpublic java.awt.GraphicsDevice getDevice()
getDevice in class java.awt.GraphicsConfiguration
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||