Package com.orsonpdf
Class PDFGraphicsConfiguration
- java.lang.Object
-
- java.awt.GraphicsConfiguration
-
- com.orsonpdf.PDFGraphicsConfiguration
-
public class PDFGraphicsConfiguration extends java.awt.GraphicsConfigurationA graphics configuration for thePDFGraphics2Dclass.
-
-
Constructor Summary
Constructors Constructor Description PDFGraphicsConfiguration(int width, int height)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.VolatileImagecreateCompatibleVolatileImage(int width, int height, java.awt.ImageCapabilities caps, int transparency)java.awt.RectanglegetBounds()Returns the bounds for this configuration.java.awt.image.ColorModelgetColorModel()Returns the color model for this configuration.java.awt.image.ColorModelgetColorModel(int transparency)Returns the color model for the specified transparency type, ornull.java.awt.geom.AffineTransformgetDefaultTransform()Returns the default transform.java.awt.GraphicsDevicegetDevice()Returns the graphics device that this configuration is associated with.java.awt.geom.AffineTransformgetNormalizingTransform()Returns the normalizing transform.
-
-
-
Method Detail
-
getDevice
public java.awt.GraphicsDevice getDevice()
Returns the graphics device that this configuration is associated with.- Specified by:
getDevicein classjava.awt.GraphicsConfiguration- Returns:
- The graphics device (never
null).
-
getColorModel
public java.awt.image.ColorModel getColorModel()
Returns the color model for this configuration.- Specified by:
getColorModelin classjava.awt.GraphicsConfiguration- Returns:
- The color model.
-
getColorModel
public java.awt.image.ColorModel getColorModel(int transparency)
Returns the color model for the specified transparency type, ornull.- Specified by:
getColorModelin classjava.awt.GraphicsConfiguration- Parameters:
transparency- the transparency type.- Returns:
- A color model (possibly
null).
-
getDefaultTransform
public java.awt.geom.AffineTransform getDefaultTransform()
Returns the default transform.- Specified by:
getDefaultTransformin classjava.awt.GraphicsConfiguration- Returns:
- The default transform.
-
getNormalizingTransform
public java.awt.geom.AffineTransform getNormalizingTransform()
Returns the normalizing transform.- Specified by:
getNormalizingTransformin classjava.awt.GraphicsConfiguration- Returns:
- The normalizing transform.
-
getBounds
public java.awt.Rectangle getBounds()
Returns the bounds for this configuration.- Specified by:
getBoundsin classjava.awt.GraphicsConfiguration- Returns:
- The bounds.
-
createCompatibleVolatileImage
public java.awt.image.VolatileImage createCompatibleVolatileImage(int width, int height, java.awt.ImageCapabilities caps, int transparency) throws java.awt.AWTException- Overrides:
createCompatibleVolatileImagein classjava.awt.GraphicsConfiguration- Throws:
java.awt.AWTException
-
-