Class PDFGraphicsConfiguration
java.lang.Object
java.awt.GraphicsConfiguration
com.orsonpdf.PDFGraphicsConfiguration
A graphics configuration for the
PDFGraphics2D class.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GraphicsDeviceprivate intprivate BufferedImageprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency) Returns the bounds for this configuration.Returns the color model for this configuration.getColorModel(int transparency) Returns the color model for the specified transparency type, ornull.Returns the default transform.Returns the graphics device that this configuration is associated with.Returns the normalizing transform.
-
Field Details
-
device
-
width
private int width -
height
private int height -
img
-
-
Constructor Details
-
PDFGraphicsConfiguration
public PDFGraphicsConfiguration(int width, int height) Creates a new instance.- Parameters:
width- the width of the bounds.height- the height of the bounds.
-
-
Method Details
-
getDevice
Returns the graphics device that this configuration is associated with.- Specified by:
getDevicein classGraphicsConfiguration- Returns:
- The graphics device (never
null).
-
getColorModel
Returns the color model for this configuration.- Specified by:
getColorModelin classGraphicsConfiguration- Returns:
- The color model.
-
getColorModel
Returns the color model for the specified transparency type, ornull.- Specified by:
getColorModelin classGraphicsConfiguration- Parameters:
transparency- the transparency type.- Returns:
- A color model (possibly
null).
-
getDefaultTransform
Returns the default transform.- Specified by:
getDefaultTransformin classGraphicsConfiguration- Returns:
- The default transform.
-
getNormalizingTransform
Returns the normalizing transform.- Specified by:
getNormalizingTransformin classGraphicsConfiguration- Returns:
- The normalizing transform.
-
getBounds
Returns the bounds for this configuration.- Specified by:
getBoundsin classGraphicsConfiguration- Returns:
- The bounds.
-
createCompatibleVolatileImage
public VolatileImage createCompatibleVolatileImage(int width, int height, ImageCapabilities caps, int transparency) throws AWTException - Overrides:
createCompatibleVolatileImagein classGraphicsConfiguration- Throws:
AWTException
-