Class SVGElement
java.lang.Object
org.apache.fop.fo.FONode
org.apache.fop.fo.XMLObj
org.apache.fop.fo.extensions.svg.SVGObj
org.apache.fop.fo.extensions.svg.SVGElement
- All Implemented Interfaces:
Cloneable, EventListener, ContentHandlerFactory.ObjectBuiltListener
Class representing the SVG root element
for constructing an SVG document.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class is the default context for a particular element.Nested classes/interfaces inherited from class FONode
FONode.FONodeIterator, FONode.GatherContextInfoFunction -
Field Summary
Fields inherited from class FONode
FO_URI, FOX_URI, locator, log, nodeChangeBarList, parent, siblings, startOfNodeChangeBarList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method is overridden by extension elements and allows the extension element to return aContentHandlerFactory.getDimension(Point2D view) Get the dimensions of this XML document.static Point2DGet the size of the SVG root element.Methods inherited from class SVGObj
getNamespaceURI, getNormalNamespacePrefixMethods inherited from class XMLObj
addChildNode, addElement, buildTopLevel, characters, createBasicDocument, getDOMDocument, getIntrinsicAlignmentAdjust, getLocalName, notifyObjectBuilt, processNode, validateChildNodeMethods inherited from class FONode
addCharacters, attachSiblings, bind, canHaveMarkers, charIterator, clone, clone, collectDelimitedTextRanges, collectDelimitedTextRanges, createPropertyList, decorateWithContextInfo, endOfNode, errorText, finalizeNode, gatherContextInfo, getBuilderContext, getChangeBarList, getChildNodes, getChildNodes, getContextInfo, getContextInfoAlt, getExtensionAttachment, getFOEventHandler, getFOValidationEventProducer, getLocator, getLocatorString, getLogger, getName, getName, getNameId, getNodePrefix, getNodeString, getParent, getRoot, getStructureTreeElement, getUserAgent, inMarker, invalidChildError, invalidChildError, invalidPropertyValueError, isBidiRangeBlockItem, isChangeBarElement, isDelimitedTextRangeBoundary, missingChildElementError, missingChildElementError, missingPropertyError, nodesOutOfOrderError, nodesOutOfOrderError, notSupportedChildError, removeChild, setLocator, setStructureTreeElement, startOfNode, tooManyNodesError, tooManyNodesError, tooManyNodesError, validateChildNode, warningText
-
Constructor Details
-
SVGElement
Constructs an SVG object- Parameters:
parent- the parent formatting object
-
-
Method Details
-
getContentHandlerFactory
This method is overridden by extension elements and allows the extension element to return aContentHandlerFactory. This factory can create ContentHandler implementations that handle foreign XML content by either building up a specific DOM, a Java object or something else.- Overrides:
getContentHandlerFactoryin classFONode- Returns:
- the
ContentHandlerFactoryornullif not applicable
-
getDimension
Get the dimensions of this XML document.- Overrides:
getDimensionin classXMLObj- Parameters:
view- the viewport dimensions- Returns:
- the dimensions of this SVG document
-
getSize
-