public class SvgElementFactory extends Object implements ElementFactory
SvgElement subclass.| Constructor and Description |
|---|
SvgElementFactory() |
| Modifier and Type | Method and Description |
|---|---|
DomElement |
createElement(SgmlPage page,
String tagName,
Attributes attributes)
Creates an element according to this factory's specification.
|
DomElement |
createElementNS(SgmlPage page,
String namespaceURI,
String qualifiedNameLC,
Attributes attributes)
Creates an element according to this factory's specification.
|
boolean |
isSupported(String tagNameLowerCase)
Returns whether the specified name is a valid SVG tag name.
|
public DomElement createElement(SgmlPage page, String tagName, Attributes attributes)
createElement in interface ElementFactorypage - the enclosing page for the new elementtagName - the tag name (most factories will be responsible for a specific tag, but this
parameter is passed in for factories that don't follow this rule)attributes - the attributes encountered during XML/HTML parsing (possibly null
if no attributes specifiedpublic DomElement createElementNS(SgmlPage page, String namespaceURI, String qualifiedNameLC, Attributes attributes)
createElementNS in interface ElementFactorypage - the enclosing page for the new elementnamespaceURI - the URI that identifies an XML namespacequalifiedNameLC - the qualified name of the element type to instantiateattributes - the attributes encountered during XML/HTML parsing (possibly null
if no attributes specifiedpublic boolean isSupported(String tagNameLowerCase)
tagNameLowerCase - the tag name in lower caseCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.