java.util.EventListener
, ContentHandlerFactory.ObjectBuiltListener
public class SVGElement extends SVGObj
Modifier and Type | Class | Description |
---|---|---|
static class |
SVGElement.PDFUnitContext |
This class is the default context for a particular
element.
|
FONode.FONodeIterator, FONode.GatherContextInfoFunction
Constructor | Description |
---|---|
SVGElement(FONode parent) |
Constructs an SVG object
|
Modifier and Type | Method | 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.
|
addCharacters, attachSiblings, bind, canHaveMarkers, charIterator, clone, clone, collectDelimitedTextRanges, collectDelimitedTextRanges, createPropertyList, decorateWithContextInfo, endOfNode, errorText, finalizeNode, gatherContextInfo, getBuilderContext, getChildNodes, getChildNodes, getContextInfo, getContextInfoAlt, getExtensionAttachment, getFOEventHandler, getFOValidationEventProducer, getLocator, getLocatorString, getLogger, getName, getName, getNameId, getNodePrefix, getNodeString, getParent, getRoot, getStructureTreeElement, getUserAgent, inMarker, invalidChildError, invalidChildError, invalidPropertyValueError, isBidiRangeBlockItem, isDelimitedTextRangeBoundary, missingChildElementError, missingChildElementError, missingPropertyError, nodesOutOfOrderError, nodesOutOfOrderError, notSupportedChildError, removeChild, setLocator, setStructureTreeElement, startOfNode, tooManyNodesError, tooManyNodesError, tooManyNodesError, validateChildNode, warningText
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNamespaceURI, getNormalNamespacePrefix
addChildNode, addElement, buildTopLevel, characters, createBasicDocument, getDOMDocument, getIntrinsicAlignmentAdjust, getLocalName, notifyObjectBuilt, processNode, validateChildNode
public SVGElement(FONode parent)
parent
- the parent formatting objectpublic ContentHandlerFactory getContentHandlerFactory()
ContentHandlerFactory
. This factory can create ContentHandler implementations that
handle foreign XML content by either building up a specific DOM, a Java object or something
else.getContentHandlerFactory
in class FONode
ContentHandlerFactory
or null
if not applicablepublic 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-2016 The Apache Software Foundation. All Rights Reserved.