public class SVGStyle extends SVGElementBase<Set<SVGCssStyle>>
SVGElementBase.CoreAttribute, SVGElementBase.Matrix, SVGElementBase.XLinkAttribute| Modifier and Type | Field and Description |
|---|---|
static String |
CSS_TYPE
Determines the string which indicates that the type is css.
|
| Constructor and Description |
|---|
SVGStyle(String name,
Attributes attributes,
SVGElementBase<?> 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<SVGCssStyle> |
createResult(SVGCssStyle style)
Must be overwritten in the actual implementation to create a new result for this element based on the
information available.
|
protected void |
initializeResult(Set<SVGCssStyle> cssStyles,
SVGCssStyle style)
This method will be called in the
SVGElementBase.createAndInitializeResult(SVGCssStyle) 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.
|
createAndInitializeResult, createAndInitializeResult, endProcessing, getClipPath, getClipPath, getCssStyle, getCssStyleAndResolveInheritance, getCssStyleAndResolveInheritance, getOwnStyle, getPresentationCssStyle, getReferencedStyle, getResult, getResult, getTransformation, startProcessinggetAttribute, getAttributes, getChildren, getDataProvider, getName, getParent, toStringpublic static final String CSS_TYPE
public SVGStyle(String name, Attributes attributes, SVGElementBase<?> parent, SVGDataProvider dataProvider)
name - value of the elementattributes - attributes of the elementparent - parent of the elementdataProvider - dataprovider to be usedprotected final Set<SVGCssStyle> createResult(SVGCssStyle style)
createResult in class SVGElementBase<Set<SVGCssStyle>>style - the element to use when data is needed.protected void initializeResult(Set<SVGCssStyle> cssStyles, SVGCssStyle style) throws SVGException
SVGElementBaseSVGElementBase.createAndInitializeResult(SVGCssStyle) and allows to modify the result such as applying a style or transformations.
The given inheritanceResolver should be used to retrieve such data, this simply is needed because some elements can actually be referenced e.g. SVGUse and their actual parent is not
the one from which the inherited style attributes can be retrieved.initializeResult in class SVGElementBase<Set<SVGCssStyle>>cssStyles - the result which should be modified.style - the SVGCssStyle to use when data is needed.SVGException - will be thrown when an error during modificationpublic void processCharacterData(char[] ch,
int start,
int length)
processCharacterData in class SVGElementBase<Set<SVGCssStyle>>ch - The characters.start - The start position in the character array.length - The number of characters to use from the
character array.Copyright © 2016 Saxonia Systems AG. All rights reserved.