Class Java2DRenderingContext

java.lang.Object
org.apache.fop.render.AbstractRenderingContext
org.apache.fop.render.java2d.Java2DRenderingContext
All Implemented Interfaces:
RenderingContext

public class Java2DRenderingContext extends AbstractRenderingContext
Rendering context for Java2D painting.
  • Constructor Details

    • Java2DRenderingContext

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

    • getMimeType

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

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