Package org.apache.fop.svg
Class PDFGraphicsDevice
- java.lang.Object
-
- java.awt.GraphicsDevice
-
- org.apache.fop.svg.PDFGraphicsDevice
-
class PDFGraphicsDevice extends java.awt.GraphicsDevice
This implements the GraphicsDevice interface as appropriate for a PDFGraphics2D. This is quite simple since we only have one GraphicsConfiguration for now (this might change in the future I suppose).
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.GraphicsConfiguration
gc
The Graphics Config that created us...
-
Constructor Summary
Constructors Constructor Description PDFGraphicsDevice(PDFGraphicsConfiguration gc)
Create a new PDF graphics device.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.GraphicsConfiguration
getBestConfiguration(java.awt.GraphicsConfigTemplate gct)
Ignore template and return the only config we havejava.awt.GraphicsConfiguration[]
getConfigurations()
Return an array of our one GraphicsConfigjava.awt.GraphicsConfiguration
getDefaultConfiguration()
Return out sole GraphicsConfig.java.lang.String
getIDstring()
Generate an IdString..int
getType()
Let the caller know that we are "a printer"
-
-
-
Constructor Detail
-
PDFGraphicsDevice
PDFGraphicsDevice(PDFGraphicsConfiguration gc)
Create a new PDF graphics device.- Parameters:
gc
- The graphics configuration we should reference
-
-
Method Detail
-
getBestConfiguration
public java.awt.GraphicsConfiguration getBestConfiguration(java.awt.GraphicsConfigTemplate gct)
Ignore template and return the only config we have- Overrides:
getBestConfiguration
in classjava.awt.GraphicsDevice
- Parameters:
gct
- the template configuration- Returns:
- the best configuration which is the only one
-
getConfigurations
public java.awt.GraphicsConfiguration[] getConfigurations()
Return an array of our one GraphicsConfig- Specified by:
getConfigurations
in classjava.awt.GraphicsDevice
- Returns:
- an array containing the one graphics configuration
-
getDefaultConfiguration
public java.awt.GraphicsConfiguration getDefaultConfiguration()
Return out sole GraphicsConfig.- Specified by:
getDefaultConfiguration
in classjava.awt.GraphicsDevice
- Returns:
- the graphics configuration that created this object
-
getIDstring
public java.lang.String getIDstring()
Generate an IdString..- Specified by:
getIDstring
in classjava.awt.GraphicsDevice
- Returns:
- the ID string for this device, uses toString
-
getType
public int getType()
Let the caller know that we are "a printer"- Specified by:
getType
in classjava.awt.GraphicsDevice
- Returns:
- the type which is always printer
-
-