public class SVGAttributeTypeLength extends SVGAttributeType<Double,SVGAttributeTypeLength.Unit>
| Modifier and Type | Class and Description |
|---|---|
static class |
SVGAttributeTypeLength.Unit
Represents the unit which might be attached to a length value
|
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_VALUE
Determines the default value for this
SVGAttributeType. |
| Constructor and Description |
|---|
SVGAttributeTypeLength(SVGDocumentDataProvider dataProvider)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected javafx.util.Pair<Double,SVGAttributeTypeLength.Unit> |
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
SVGAttributeType.INHERIT_INDICATOR or SVGAttributeType.NONE_INDICATOR. |
getDocumentDataProvider, getIsInherited, getIsNone, getUnit, getValue, getValueAndUnit, hasUnit, setText, useDefaultValueequals, getText, hashCodepublic static final double DEFAULT_VALUE
SVGAttributeType.public SVGAttributeTypeLength(SVGDocumentDataProvider dataProvider)
dataProvider - the SVGDocumentDataProvider to use when data is needed.protected javafx.util.Pair<Double,SVGAttributeTypeLength.Unit> getValueAndUnit(String cssText) throws SVGException
SVGAttributeTypeSVGAttributeType.INHERIT_INDICATOR or SVGAttributeType.NONE_INDICATOR.getValueAndUnit in class SVGAttributeType<Double,SVGAttributeTypeLength.Unit>cssText - cssText which is not equal to SVGAttributeType.INHERIT_INDICATOR or SVGAttributeType.NONE_INDICATOR.Pair which contains the value as the key and the value as the value.NumberFormatException - when any value inside the array is not a valid SVGAttributeTypeLengthSVGException - when any error occurs during the consumption of the given text.Copyright © 2017 Saxonia Systems AG. All rights reserved.