public class SVGDataProvider extends Object implements IDataProvider
| Constructor and Description |
|---|
SVGDataProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Resets the data provider clearing all the stored data and styles.
|
<TData extends SVGElementBase> |
getData(Class<TData> clazz,
String key)
Returns the data of the given key as the desired type if it exists.
|
Set<SVGCssStyle> |
getStyles()
Gets the styles of the converted svg file.
|
Map<String,SVGElementBase> |
getUnmodifiableData()
Returns the
data as an unmodifiable map. |
boolean |
hasData(String key)
Determines whether the given key exists in the
data. |
void |
setData(String key,
SVGElementBase data)
Sets the given data into the map.
|
public final Map<String,SVGElementBase> getUnmodifiableData()
data as an unmodifiable map.data as an unmodifiable map.public final Set<SVGCssStyle> getStyles()
public final boolean hasData(String key)
data.key - key to checkpublic final void setData(String key, SVGElementBase data)
key - the key of the identifier of the data, must not be null or epmty.data - the the data that should be set, must not be null.IllegalArgumentException - if either key is null or empty or data is null.public final <TData extends SVGElementBase> TData getData(Class<TData> clazz, String key)
TData - desired type of the dataclazz - class to be used, must not be nullkey - key to be used must not be null or emptypublic final void clear()
clear in interface IDataProviderCopyright © 2016 Saxonia Systems AG. All rights reserved.