Package org.apache.fop.render.afp
Class AFPRenderingContext
java.lang.Object
org.apache.fop.render.AbstractRenderingContext
org.apache.fop.render.afp.AFPRenderingContext
- All Implemented Interfaces:
RenderingContext
Rendering context for AFP (MO:DCA) production.
-
Constructor Summary
ConstructorDescriptionAFPRenderingContext
(FOUserAgent userAgent, AFPResourceManager resourceManager, AFPPaintingState paintingState, FontInfo fontInfo, Map foreignAttributes) Main constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the font list.Returns a Map of foreign attributes.Returns the MIME type associated with the current output format.Returns the resource manager.Methods inherited from class org.apache.fop.render.AbstractRenderingContext
getHint, getHints, getUserAgent, putHint, putHints
-
Constructor Details
-
AFPRenderingContext
public AFPRenderingContext(FOUserAgent userAgent, AFPResourceManager resourceManager, AFPPaintingState paintingState, FontInfo fontInfo, Map foreignAttributes) Main constructor.- Parameters:
userAgent
- the user agentresourceManager
- the resource managerpaintingState
- the painting statefontInfo
- the font listforeignAttributes
- a map of foreign attributes
-
-
Method Details
-
getMimeType
Returns the MIME type associated with the current output format.- Returns:
- the MIME type (ex. application/pdf)
-
getResourceManager
Returns the resource manager.- Returns:
- the resource manager
-
getPaintingState
- Returns:
- painting state
-
getFontInfo
Returns the font list.- Returns:
- the font list
-
getForeignAttributes
Returns a Map of foreign attributes.- Returns:
- the foreign attributes (Map<QName, Object>)
-