public class Style extends SVGElementBase<Set<CssStyle>>
| Modifier and Type | Field and Description |
|---|---|
static String
|
CSS_TYPE
Determines the string which indicates that the type is css.
|
| Constructor and Description |
|---|
Style(String name,
Attributes attributes,
SVGElementBase<SVGDataProvider> parent,
SVGDataProvider dataProvider)
Creates a new instance of he element using the given attributes and the parent.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<CssStyle> |
createResultInternal()
Must be overwritten in the actual implementation to create a new result for this element based on the
information available.
|
protected void |
initializeResult(Set<CssStyle> cssStyles)
This method will be called in the
SVGElementBase.createResult()
and allows to modify the result such as applying a style or transformations.
|
void |
processCharacterData(char[] ch,
int start,
int length)
Will be called when character data (CDATA) is read for an element.
|
createResult, endProcessing, getCssStyle, getResult, getTransformation, startProcessinggetAttribute, getAttributes, getChildren, getDataProvider, getName, getParentpublic static final String CSS_TYPE
public Style(String name, Attributes attributes, SVGElementBase<SVGDataProvider> parent, SVGDataProvider dataProvider)
name - value of the elementattributes - attributes of the elementparent - parent of the elementdataProvider - dataprovider to be usedprotected final Set<CssStyle> createResultInternal()
createResultInternal in class SVGElementBase<Set<CssStyle>>protected void initializeResult(Set<CssStyle> cssStyles) throws SVGException
SVGElementBaseSVGElementBase.createResult()
and allows to modify the result such as applying a style or transformations.
initializeResult in class SVGElementBase<Set<CssStyle>>cssStyles - the result which should be modified.SVGException - will be thrown when an
error during modification
public void processCharacterData(char[] ch,
int start,
int length)
processCharacterData in class SVGElementBase<Set<CssStyle>>ch - The characters.start - The start position in the character array.length - The number of characters to use from the
character array.
Copyright © 2015 Saxonia Systems AG. All rights reserved.