Class SVGSVGHandler
java.lang.Object
org.apache.fop.render.svg.SVGSVGHandler
- All Implemented Interfaces:
RendererContextConstants, SVGRendererContextConstants, XMLHandler
The svg:svg element handler.
-
Field Summary
Fields inherited from interface RendererContextConstants
FOREIGN_ATTRIBUTES, HANDLER_CONFIGURATION, HEIGHT, OUTPUT_STREAM, PAGE_VIEWPORT, WIDTH, XPOS, YPOSFields inherited from interface SVGRendererContextConstants
SVG_DOCUMENT, SVG_PAGE_GFields inherited from interface XMLHandler
HANDLE_ALL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleXML(RendererContext context, Document doc, String ns) Handle an external xml document inside a Foreign Object Area.booleansupportsRenderer(Renderer renderer) Checks if this XMLHandler supports handling an XML namespace for a particular renderer.
-
Constructor Details
-
SVGSVGHandler
public SVGSVGHandler()
-
-
Method Details
-
handleXML
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).
- Specified by:
handleXMLin interfaceXMLHandler- Parameters:
context- The RendererContext (contains the user agent)doc- A DOM containing the foreign object to be processedns- The Namespace of the foreign object- Throws:
Exception- If an error occurs during processing.
-
supportsRenderer
Checks if this XMLHandler supports handling an XML namespace for a particular renderer.- Specified by:
supportsRendererin interfaceXMLHandler- Parameters:
renderer- the renderer for which to check.- Returns:
- true if this XML handler supports a particular renderer
-
getNamespace
- Specified by:
getNamespacein interfaceXMLHandler- Returns:
- the XML namespace for the XML dialect this XMLHandler supports, null if all XML content is handled by this instance.
-