Package org.apache.fop.svg
Class PDFGraphicsDevice
java.lang.Object
java.awt.GraphicsDevice
org.apache.fop.svg.PDFGraphicsDevice
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.GraphicsDevice
GraphicsDevice.WindowTranslucency
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GraphicsConfiguration
The Graphics Config that created us...Fields inherited from class java.awt.GraphicsDevice
TYPE_IMAGE_BUFFER, TYPE_PRINTER, TYPE_RASTER_SCREEN
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new PDF graphics device. -
Method Summary
Modifier and TypeMethodDescriptionIgnore template and return the only config we haveReturn an array of our one GraphicsConfigReturn out sole GraphicsConfig.Generate an IdString..int
getType()
Let the caller know that we are "a printer"Methods inherited from class java.awt.GraphicsDevice
getAvailableAcceleratedMemory, getDisplayMode, getDisplayModes, getFullScreenWindow, isDisplayChangeSupported, isFullScreenSupported, isWindowTranslucencySupported, setDisplayMode, setFullScreenWindow
-
Field Details
-
gc
The Graphics Config that created us...
-
-
Constructor Details
-
PDFGraphicsDevice
PDFGraphicsDevice(PDFGraphicsConfiguration gc) Create a new PDF graphics device.- Parameters:
gc
- The graphics configuration we should reference
-
-
Method Details
-
getBestConfiguration
Ignore template and return the only config we have- Overrides:
getBestConfiguration
in classGraphicsDevice
- Parameters:
gct
- the template configuration- Returns:
- the best configuration which is the only one
-
getConfigurations
Return an array of our one GraphicsConfig- Specified by:
getConfigurations
in classGraphicsDevice
- Returns:
- an array containing the one graphics configuration
-
getDefaultConfiguration
Return out sole GraphicsConfig.- Specified by:
getDefaultConfiguration
in classGraphicsDevice
- Returns:
- the graphics configuration that created this object
-
getIDstring
Generate an IdString..- Specified by:
getIDstring
in classGraphicsDevice
- 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 classGraphicsDevice
- Returns:
- the type which is always printer
-