Class Java2DRenderingContext

    • Field Detail

      • g2d

        private java.awt.Graphics2D g2d
    • Constructor Detail

      • Java2DRenderingContext

        public Java2DRenderingContext​(FOUserAgent userAgent,
                                      java.awt.Graphics2D g2d,
                                      FontInfo fontInfo)
        Main constructor.
        Parameters:
        userAgent - the user agent
        g2d - the target Graphics2D instance
        fontInfo - the font list
    • Method Detail

      • getMimeType

        public java.lang.String getMimeType()
        Returns the MIME type associated with the current output format.
        Returns:
        the MIME type (ex. application/pdf)
      • getGraphics2D

        public java.awt.Graphics2D getGraphics2D()
        Returns the target Graphics2D object.
        Returns:
        the Graphics2D object