public class SVGElementFactory extends Object implements IElementFactory<SVGDocumentDataProvider,SVGElementBase<?>>
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Constructor<? extends SVGElementBase<?>>> |
KNOWN_CLASSES
Contains the constructor of all the svg elements that are known.
|
| Constructor and Description |
|---|
SVGElementFactory() |
| Modifier and Type | Method and Description |
|---|---|
SVGElementBase<?> |
createElement(String name,
Attributes attributes,
SVGElementBase<?> parent,
SVGDocumentDataProvider dataProvider)
creates a new instance of the desired
ElementBase using the given value as an indicator which instance
to create. |
public static final Map<String,Constructor<? extends SVGElementBase<?>>> KNOWN_CLASSES
public SVGElementBase<?> createElement(String name, Attributes attributes, SVGElementBase<?> parent, SVGDocumentDataProvider dataProvider)
IElementFactoryElementBase using the given value as an indicator which instance
to create.createElement in interface IElementFactory<SVGDocumentDataProvider,SVGElementBase<?>>name - local value of the element for which the ElementBase is to be createdattributes - attributes which are to be applied to the ElementBaseparent - the parent to be used for the ElementBasedataProvider - the dataProvider to be used for the ElementBaseElementBaseCopyright © 2016 Saxonia Systems AG. All rights reserved.