public class SVGAttributeTypeStrokeDashArray extends SVGAttributeType<SVGAttributeTypeLength[],Void>
| Modifier and Type | Field and Description |
|---|---|
static SVGAttributeTypeLength[] |
DEFAULT_VALUE
Determines the default value to use for this
SVGAttributeType. |
| Constructor and Description |
|---|
SVGAttributeTypeStrokeDashArray(SVGDocumentDataProvider dataProvider)
Creates new instance with a default value of an empty array.
|
| Modifier and Type | Method and Description |
|---|---|
List<Double> |
getDashValues() |
protected javafx.util.Pair<SVGAttributeTypeLength[],Void> |
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 SVGAttributeTypeLength[] DEFAULT_VALUE
SVGAttributeType.public SVGAttributeTypeStrokeDashArray(SVGDocumentDataProvider dataProvider)
dataProvider - the SVGDocumentDataProvider to use when data is needed.public final List<Double> getDashValues() throws SVGException
dashValues.SVGException - when an error occurs during the retrieval of the value.protected javafx.util.Pair<SVGAttributeTypeLength[],Void> getValueAndUnit(String cssText) throws SVGException
SVGAttributeType.INHERIT_INDICATOR or SVGAttributeType.NONE_INDICATOR. This implementation will parse the given data as a coma separated list of dashValues.getValueAndUnit in class SVGAttributeType<SVGAttributeTypeLength[],Void>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.