Package org.apache.fop.render.java2d
Class Java2DRenderingContext
java.lang.Object
org.apache.fop.render.AbstractRenderingContext
org.apache.fop.render.java2d.Java2DRenderingContext
- All Implemented Interfaces:
RenderingContext
Rendering context for Java2D painting.
-
Constructor Summary
ConstructorDescriptionJava2DRenderingContext
(FOUserAgent userAgent, Graphics2D g2d, FontInfo fontInfo) Main constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the target Graphics2D object.Returns the MIME type associated with the current output format.Methods inherited from class org.apache.fop.render.AbstractRenderingContext
getHint, getHints, getUserAgent, putHint, putHints
-
Constructor Details
-
Java2DRenderingContext
Main constructor.- Parameters:
userAgent
- the user agentg2d
- the target Graphics2D instancefontInfo
- the font list
-
-
Method Details
-
getMimeType
Returns the MIME type associated with the current output format.- Returns:
- the MIME type (ex. application/pdf)
-
getGraphics2D
Returns the target Graphics2D object.- Returns:
- the Graphics2D object
-