Package org.jfree.pdf

Class PDFGraphicsConfiguration


  • public class PDFGraphicsConfiguration
    extends java.awt.GraphicsConfiguration
    A graphics configuration for the PDFGraphics2D class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.GraphicsDevice device  
      private int height  
      private java.awt.image.BufferedImage img  
      private int width  
    • 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.VolatileImage createCompatibleVolatileImage​(int width, int height, java.awt.ImageCapabilities caps, int transparency)  
      java.awt.Rectangle getBounds()
      Returns the bounds for this configuration.
      java.awt.image.ColorModel getColorModel()
      Returns the color model for this configuration.
      java.awt.image.ColorModel getColorModel​(int transparency)
      Returns the color model for the specified transparency type, or null.
      java.awt.geom.AffineTransform getDefaultTransform()
      Returns the default transform.
      java.awt.GraphicsDevice getDevice()
      Returns the graphics device that this configuration is associated with.
      java.awt.geom.AffineTransform getNormalizingTransform()
      Returns the normalizing transform.
      • Methods inherited from class java.awt.GraphicsConfiguration

        createCompatibleImage, createCompatibleImage, createCompatibleVolatileImage, createCompatibleVolatileImage, createCompatibleVolatileImage, getBufferCapabilities, getImageCapabilities, isTranslucencyCapable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • device

        private java.awt.GraphicsDevice device
      • width

        private int width
      • height

        private int height
      • img

        private java.awt.image.BufferedImage img
    • Constructor Detail

      • 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 Detail

      • getDevice

        public java.awt.GraphicsDevice getDevice()
        Returns the graphics device that this configuration is associated with.
        Specified by:
        getDevice in class java.awt.GraphicsConfiguration
        Returns:
        The graphics device (never null).
      • getColorModel

        public java.awt.image.ColorModel getColorModel()
        Returns the color model for this configuration.
        Specified by:
        getColorModel in class java.awt.GraphicsConfiguration
        Returns:
        The color model.
      • getColorModel

        public java.awt.image.ColorModel getColorModel​(int transparency)
        Returns the color model for the specified transparency type, or null.
        Specified by:
        getColorModel in class java.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:
        getDefaultTransform in class java.awt.GraphicsConfiguration
        Returns:
        The default transform.
      • getNormalizingTransform

        public java.awt.geom.AffineTransform getNormalizingTransform()
        Returns the normalizing transform.
        Specified by:
        getNormalizingTransform in class java.awt.GraphicsConfiguration
        Returns:
        The normalizing transform.
      • getBounds

        public java.awt.Rectangle getBounds()
        Returns the bounds for this configuration.
        Specified by:
        getBounds in class java.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:
        createCompatibleVolatileImage in class java.awt.GraphicsConfiguration
        Throws:
        java.awt.AWTException