public class SVGElement extends SVGObj
Modifier and Type | Class and Description |
---|---|
static class |
SVGElement.PDFUnitContext
This class is the default context for a particular
element.
|
FONode.FONodeIterator
Constructor and Description |
---|
SVGElement(FONode parent)
Constructs an SVG object
|
Modifier and Type | Method and Description |
---|---|
ContentHandlerFactory |
getContentHandlerFactory()
This method is overridden by extension elements and allows the extension element to return
a ContentHandlerFactory.
|
java.awt.geom.Point2D |
getDimension(java.awt.geom.Point2D view)
Get the dimensions of this XML document.
|
static java.awt.geom.Point2D |
getSize(int size,
org.w3c.dom.Element svgRoot,
float ptmm)
Get the size of the SVG root element.
|
void |
processNode(java.lang.String elementName,
org.xml.sax.Locator locator,
org.xml.sax.Attributes attlist,
PropertyList propertyList)
Initialize the node with its name, location information, and attributes
The attributes must be used immediately as the sax attributes
will be altered for the next element.
|
getNamespaceURI, getNormalNamespacePrefix
addCharacters, addChildNode, addElement, buildTopLevel, createBasicDocument, getDOMDocument, getIntrinsicAlignmentAdjust, getLocalName, notifyObjectBuilt, validateChildNode
attachSiblings, attributeError, attributeWarning, bind, canHaveMarkers, charIterator, clone, clone, createPropertyList, decorateWithContextInfo, endOfNode, errorText, gatherContextInfo, getChildNodes, getChildNodes, getContextInfo, getExtensionAttachment, getFOEventHandler, getLocator, getLocatorString, getLogger, getName, getName, getNameId, getNodeString, getParent, getRoot, getUserAgent, inMarker, invalidChildError, invalidChildError, missingChildElementError, missingPropertyError, nodesOutOfOrderError, removeChild, setLocator, startOfNode, tooManyNodesError, tooManyNodesError, validateChildNode, warningText
public SVGElement(FONode parent)
parent
- the parent formatting objectpublic ContentHandlerFactory getContentHandlerFactory()
getContentHandlerFactory
in class FONode
public void processNode(java.lang.String elementName, org.xml.sax.Locator locator, org.xml.sax.Attributes attlist, PropertyList propertyList) throws FOPException
processNode
in class XMLObj
elementName
- element name (e.g., "fo:block")locator
- Locator object (ignored by default)attlist
- Collection of attributes passed to us from the parser.propertyList
- the property list of the parent nodeFOPException
- for errors or inconsistencies in the attributespublic java.awt.geom.Point2D getDimension(java.awt.geom.Point2D view)
getDimension
in class XMLObj
view
- the viewport dimensionspublic static java.awt.geom.Point2D getSize(int size, org.w3c.dom.Element svgRoot, float ptmm)
size
- the font sizesvgRoot
- the svg root elementptmm
- the pixel to millimeter conversion factorCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.