public class PercentParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static double |
parseValue(java.lang.String value)
Parse a percent value.
|
static double |
parseValue(java.lang.String value,
boolean allowAbsolute)
Parse a percent value.
|
static double |
parseValue(XMLNode node,
java.lang.String attrName)
Parse a node attribute as a percent value.
|
static double |
parseValue(XMLNode node,
java.lang.String attrName,
boolean allowAbsolute)
Parse a node attribute as a percent value.
|
public static double parseValue(XMLNode node, java.lang.String attrName, boolean allowAbsolute)
node
- the nodeattrName
- the attribute nameallowAbsolute
- true if absolute values must be allowedpublic static double parseValue(XMLNode node, java.lang.String attrName)
node
- the nodeattrName
- the attribute namepublic static double parseValue(java.lang.String value)
value
- the valuepublic static double parseValue(java.lang.String value, boolean allowAbsolute)
value
- the valueallowAbsolute
- true if absolute values must be allowedCopyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence