Package org.apache.xmlgraphics.java2d
Class GenericGraphicsDevice
- java.lang.Object
-
- java.awt.GraphicsDevice
-
- org.apache.xmlgraphics.java2d.GenericGraphicsDevice
-
public class GenericGraphicsDevice extends GraphicsDevice
This implements theGraphicsDeviceinterface 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
Constructors Constructor Description GenericGraphicsDevice(GraphicsConfiguration gc)Create a new graphics2D device.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphicsConfigurationgetBestConfiguration(GraphicsConfigTemplate gct)Ignore template and return the only config we haveGraphicsConfiguration[]getConfigurations()Return an array of our one GraphicsConfigGraphicsConfigurationgetDefaultConfiguration()Return out sole GraphicsConfig.StringgetIDstring()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 Detail
-
GenericGraphicsDevice
public GenericGraphicsDevice(GraphicsConfiguration gc)
Create a new graphics2D device.- Parameters:
gc- we should reference
-
-
Method Detail
-
getBestConfiguration
public GraphicsConfiguration getBestConfiguration(GraphicsConfigTemplate gct)
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
public GraphicsConfiguration[] getConfigurations()
Return an array of our one GraphicsConfig- Specified by:
getConfigurationsin classGraphicsDevice- Returns:
- an array containing the one graphics configuration
-
getDefaultConfiguration
public GraphicsConfiguration getDefaultConfiguration()
Return out sole GraphicsConfig.- Specified by:
getDefaultConfigurationin classGraphicsDevice- Returns:
- the graphics configuration that created this object
-
getIDstring
public String 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
-
-