Class AFPRenderingContext

    • Constructor Detail

      • AFPRenderingContext

        public AFPRenderingContext​(FOUserAgent userAgent,
                                   AFPResourceManager resourceManager,
                                   AFPPaintingState paintingState,
                                   FontInfo fontInfo,
                                   java.util.Map foreignAttributes)
        Main constructor.
        Parameters:
        userAgent - the user agent
        resourceManager - the resource manager
        paintingState - the painting state
        fontInfo - the font list
        foreignAttributes - a map of foreign attributes
    • 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)
      • getResourceManager

        public AFPResourceManager getResourceManager()
        Returns the resource manager.
        Returns:
        the resource manager
      • getPaintingState

        public AFPPaintingState getPaintingState()
        Returns:
        painting state
      • getFontInfo

        public FontInfo getFontInfo()
        Returns the font list.
        Returns:
        the font list
      • getForeignAttributes

        public java.util.Map getForeignAttributes()
        Returns a Map of foreign attributes.
        Returns:
        the foreign attributes (Map<QName, Object>)