public class PercentParser extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
parseValue(String value)
Parse a percent value.
|
static double |
parseValue(String value,
boolean allowAbsolute)
Parse a percent value.
|
static double |
parseValue(XMLNode node,
String attrName)
Parse a node attribute as a percent value.
|
static double |
parseValue(XMLNode node,
String attrName,
boolean allowAbsolute)
Parse a node attribute as a percent value.
|
public static double parseValue(XMLNode node, String attrName, boolean allowAbsolute)
node - the nodeattrName - the attribute nameallowAbsolute - true if absolute values must be allowedpublic static double parseValue(XMLNode node, String attrName)
node - the nodeattrName - the attribute namepublic static double parseValue(String value)
value - the valuepublic static double parseValue(String value, boolean allowAbsolute)
value - the valueallowAbsolute - true if absolute values must be allowedCopyright © 2023. All rights reserved.