TValue - type of the value.public abstract class SVGCssContentTypeBase<TValue,TUnit> extends CssContentTypeBase<TValue,TUnit>
| Modifier and Type | Field and Description |
|---|---|
static String |
INHERIT_INDICATOR
Contains a
String which indicates that the SVGCssContentTypeBase of a property is inherited. |
static String |
NONE_INDICATOR
Contains a
String which indicates that the SVGCssContentTypeBase of a property is none, meaning its not used. |
defaultValue, unit, value| Constructor and Description |
|---|
SVGCssContentTypeBase(TValue defaultValue,
SVGDataProvider dataProvider)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks whether the object is reference equal or if its also a
SVGCssContentTypeBase and its isNone and isInherited are the same. |
SVGDataProvider |
getDataProvider() |
boolean |
getIsInherited() |
boolean |
getIsNone() |
protected abstract javafx.util.Pair<TValue,TUnit> |
getValueAndUnit(String cssText)
This will be called if actual data is present in the css text, this is the case if the cssText is not
INHERIT_INDICATOR or NONE_INDICATOR. |
int |
hashCode() |
void |
parseCssText(String cssText)
Consumes the given css text setting the values in the process.
|
getDefaultValue, getUnit, getValue, setUnit, setValuepublic static String INHERIT_INDICATOR
String which indicates that the SVGCssContentTypeBase of a property is inherited.public static String NONE_INDICATOR
String which indicates that the SVGCssContentTypeBase of a property is none, meaning its not used.public SVGCssContentTypeBase(TValue defaultValue, SVGDataProvider dataProvider)
defaultValue - the default value of this to use.dataProvider - the SVGDataProvider to use when data is needed.public boolean getIsInherited()
isInherited.public boolean getIsNone()
isNone.public SVGDataProvider getDataProvider()
dataProvider.protected abstract javafx.util.Pair<TValue,TUnit> getValueAndUnit(String cssText)
INHERIT_INDICATOR or NONE_INDICATOR.cssText - cssText which is not equal to INHERIT_INDICATOR or NONE_INDICATOR.Pair which contains the value as the key and the value as the value.public final void parseCssText(String cssText)
parseCssText in class CssContentTypeBase<TValue,TUnit>cssText - text to consume.public int hashCode()
hashCode in class CssContentTypeBase<TValue,TUnit>public boolean equals(Object obj)
SVGCssContentTypeBase and its isNone and isInherited are the same.equals in class CssContentTypeBase<TValue,TUnit>obj - object to check.Copyright © 2016 Saxonia Systems AG. All rights reserved.