|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.render.AbstractGenericSVGHandler
org.apache.fop.render.afp.AFPSVGHandler
AFP XML handler for SVG. Uses Apache Batik for SVG processing. This handler handles XML for foreign objects and delegates to AFPGraphics2DAdapter.
AFPGraphics2DAdapter| Field Summary |
| Fields inherited from interface org.apache.fop.render.XMLHandler |
HANDLE_ALL |
| Fields inherited from interface org.apache.fop.render.RendererContextConstants |
FOREIGN_ATTRIBUTES, HANDLER_CONFIGURATION, HEIGHT, OUTPUT_STREAM, PAGE_VIEWPORT, WIDTH, XPOS, YPOS |
| Constructor Summary | |
AFPSVGHandler()
|
|
| Method Summary | |
static org.apache.batik.bridge.BridgeContext |
createBridgeContext(FOUserAgent userAgent,
AFPGraphics2D g2d)
|
void |
handleXML(RendererContext context,
org.w3c.dom.Document doc,
java.lang.String ns)
Handle an external xml document inside a Foreign Object Area. This may throw an exception if for some reason it cannot be handled. The caller is expected to deal with this exception. The implementation may convert the XML document internally to another XML dialect (SVG, for example) and call renderXML() on the AbstractRenderer again (which can be retrieved through the RendererContext). |
protected void |
renderSVGDocument(RendererContext rendererContext,
org.w3c.dom.Document doc)
Render the SVG document. |
boolean |
supportsRenderer(Renderer renderer)
Checks if this XMLHandler supports handling an XML namespace for a particular renderer. |
protected void |
updateRendererContext(RendererContext context)
Override this method to update the renderer context if it needs special settings for certain conditions. |
| Methods inherited from class org.apache.fop.render.AbstractGenericSVGHandler |
buildGraphicsNode, createGraphics2DImagePainter, getDocumentURI, getImageSize, getNamespace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AFPSVGHandler()
| Method Detail |
public void handleXML(RendererContext context,
org.w3c.dom.Document doc,
java.lang.String ns)
throws java.lang.Exception
Handle an external xml document inside a Foreign Object Area.
This may throw an exception if for some reason it cannot be handled. The caller is expected to deal with this exception.
The implementation may convert the XML document internally to another XML dialect (SVG, for example) and call renderXML() on the AbstractRenderer again (which can be retrieved through the RendererContext).
handleXML in interface XMLHandlerhandleXML in class AbstractGenericSVGHandlerjava.lang.Exception
protected void renderSVGDocument(RendererContext rendererContext,
org.w3c.dom.Document doc)
throws java.io.IOException
renderSVGDocument in class AbstractGenericSVGHandlerrendererContext - the renderer contextdoc - the SVG document
java.io.IOException - In case of an I/O error while painting the image
public static org.apache.batik.bridge.BridgeContext createBridgeContext(FOUserAgent userAgent,
AFPGraphics2D g2d)
public boolean supportsRenderer(Renderer renderer)
renderer - the renderer for which to check.
protected void updateRendererContext(RendererContext context)
updateRendererContext in class AbstractGenericSVGHandlercontext - the renderer context
|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||