org.apache.fop.fo.extensions.svg
Class SVGElement
- Cloneable, ContentHandlerFactory.ObjectBuiltListener, EventListener
class representing the SVG root element
for constructing an svg document.
addCharacters, addChildNode, addElement, buildTopLevel, createBasicDocument, getDOMDocument, getDimension, getIntrinsicAlignmentAdjust, getLocalName, notifyObjectBuilt, processNode, validateChildNode |
addCharacters, addChildNode, attachSiblings, attributeError, attributeWarning, bind, canHaveMarkers, charIterator, clone, clone, createPropertyList, decorateWithContextInfo, endOfNode, errorText, gatherContextInfo, getChildNodes, getChildNodes, getContentHandlerFactory, getContextInfo, getExtensionAttachment, getFOEventHandler, getLocalName, getLocator, getLocatorString, getLogger, getName, getName, getNameId, getNamespaceURI, getNodeString, getNormalNamespacePrefix, getParent, getRoot, getUserAgent, inMarker, invalidChildError, invalidChildError, missingChildElementError, missingPropertyError, nodesOutOfOrderError, processNode, removeChild, setLocator, startOfNode, tooManyNodesError, tooManyNodesError, validateChildNode, warningText |
SVGElement
public SVGElement(FONode parent)
Constructs an SVG object
parent - the parent formatting object
getDimension
public Point2D getDimension(Point2D view)
Get the dimensions of this XML document.
- getDimension in interface XMLObj
view - the viewport dimensions
- the dimensions of this SVG document
getSize
public static Point2D getSize(int size,
Element svgRoot,
float ptmm) Get the size of the SVG root element.
size - the font sizesvgRoot - the svg root elementptmm - the pixel to millimeter conversion factor
- the size of the SVG document
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.