Package org.apache.xmlgraphics.java2d
Class GenericGraphicsDevice
java.lang.Object
java.awt.GraphicsDevice
org.apache.xmlgraphics.java2d.GenericGraphicsDevice
This implements the
GraphicsDevice interface as appropriate for the various output
configurations.-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.GraphicsDevice
GraphicsDevice.WindowTranslucency -
Field Summary
Fields inherited from class java.awt.GraphicsDevice
TYPE_IMAGE_BUFFER, TYPE_PRINTER, TYPE_RASTER_SCREEN -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new graphics2D 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..intgetType()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
-
Constructor Details
-
GenericGraphicsDevice
Create a new graphics2D device.- Parameters:
gc- we should reference
-
-
Method Details
-
getBestConfiguration
Ignore template and return the only config we have- Overrides:
getBestConfigurationin 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:
getConfigurationsin classGraphicsDevice- Returns:
- an array containing the one graphics configuration
-
getDefaultConfiguration
Return out sole GraphicsConfig.- Specified by:
getDefaultConfigurationin classGraphicsDevice- Returns:
- the graphics configuration that created this object
-
getIDstring
Generate an IdString..- Specified by:
getIDstringin 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:
getTypein classGraphicsDevice- Returns:
- the type which is always printer
-