|
fop 0.90alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.render.ps.PSSVGHandler
PostScript XML handler for SVG. Uses Apache Batik for SVG processing. This handler handles XML for foreign objects when rendering to PostScript. It renders SVG to the PostScript document using the PSGraphics2D. The properties from the PostScript renderer are subject to change.
Inner Class Summary | |
static class |
PSSVGHandler.PSInfo
PostScript information structure for drawing the XML document. |
protected class |
PSSVGHandler.SVGHandler
This method is placed in an inner class so that we don't get class loading errors if batik is not present. |
Field Summary | |
static java.lang.String |
PS_FONT_INFO
The font information for the PostScript renderer. |
static java.lang.String |
PS_GENERATOR
The PostScript generator that is being used to drawn into. |
static java.lang.String |
PS_HEIGHT
The height of the SVG graphic. |
static java.lang.String |
PS_WIDTH
The width of the SVG graphic. |
static java.lang.String |
PS_XPOS
The x position that this is being drawn at. |
static java.lang.String |
PS_YPOS
The y position that this is being drawn at. |
Fields inherited from interface org.apache.fop.render.XMLHandler |
HANDLE_ALL |
Constructor Summary | |
PSSVGHandler()
Create a new PostScript XML handler for use by the PostScript renderer. |
Method Summary | |
java.lang.String |
getMimeType()
|
java.lang.String |
getNamespace()
|
static PSSVGHandler.PSInfo |
getPSInfo(RendererContext context)
Get the pdf information from the render context. |
void |
handleXML(RendererContext context,
org.w3c.dom.Document doc,
java.lang.String ns)
Handle an external xml document inside a Foreign Object Area. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PS_GENERATOR
public static final java.lang.String PS_FONT_INFO
public static final java.lang.String PS_WIDTH
public static final java.lang.String PS_HEIGHT
public static final java.lang.String PS_XPOS
public static final java.lang.String PS_YPOS
Constructor Detail |
public PSSVGHandler()
Method Detail |
public void handleXML(RendererContext context, org.w3c.dom.Document doc, java.lang.String ns) throws java.lang.Exception
XMLHandler
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 XMLHandler
XMLHandler
public static PSSVGHandler.PSInfo getPSInfo(RendererContext context)
context
- the renderer contextpublic java.lang.String getMimeType()
getMimeType
in interface XMLHandler
XMLHandler.getMimeType()
public java.lang.String getNamespace()
getNamespace
in interface XMLHandler
XMLHandler.getNamespace()
|
fop 0.90alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |