Package org.apache.xmlgraphics.java2d
Class GenericGraphicsDevice
- java.lang.Object
-
- java.awt.GraphicsDevice
-
- org.apache.xmlgraphics.java2d.GenericGraphicsDevice
-
public class GenericGraphicsDevice extends java.awt.GraphicsDeviceThis implements theGraphicsDeviceinterface as appropriate for the various output configurations.
-
-
Constructor Summary
Constructors Constructor Description GenericGraphicsDevice(java.awt.GraphicsConfiguration gc)Create a new graphics2D device.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.GraphicsConfigurationgetBestConfiguration(java.awt.GraphicsConfigTemplate gct)Ignore template and return the only config we havejava.awt.GraphicsConfiguration[]getConfigurations()Return an array of our one GraphicsConfigjava.awt.GraphicsConfigurationgetDefaultConfiguration()Return out sole GraphicsConfig.java.lang.StringgetIDstring()Generate an IdString..intgetType()Let the caller know that we are "a printer"
-
-
-
Method Detail
-
getBestConfiguration
public java.awt.GraphicsConfiguration getBestConfiguration(java.awt.GraphicsConfigTemplate gct)
Ignore template and return the only config we have- Overrides:
getBestConfigurationin 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:
getConfigurationsin classjava.awt.GraphicsDevice- Returns:
- an array containing the one graphics configuration
-
getDefaultConfiguration
public java.awt.GraphicsConfiguration getDefaultConfiguration()
Return out sole GraphicsConfig.- Specified by:
getDefaultConfigurationin classjava.awt.GraphicsDevice- Returns:
- the graphics configuration that created this object
-
getIDstring
public java.lang.String getIDstring()
Generate an IdString..- Specified by:
getIDstringin 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:
getTypein classjava.awt.GraphicsDevice- Returns:
- the type which is always printer
-
-