public class CSSNumericValue extends Object implements CSSValue
Modifier and Type | Field and Description |
---|---|
static CSSNumericValue |
ZERO_LENGTH |
Modifier | Constructor and Description |
---|---|
protected |
CSSNumericValue(CSSNumericType type,
double value) |
Modifier and Type | Method and Description |
---|---|
static CSSNumericValue |
createPtValue(double value) |
static CSSNumericValue |
createValue(CSSNumericType type,
double value) |
boolean |
equals(Object obj)
Compares the input obj parameter to the current object and returns true if equal.
|
String |
getCSSText() |
CSSNumericType |
getNumericType() |
CSSType |
getType() |
double |
getValue() |
String |
toString() |
public static final CSSNumericValue ZERO_LENGTH
protected CSSNumericValue(CSSNumericType type, double value)
public double getValue()
public CSSNumericType getNumericType()
public String getCSSText()
getCSSText
in interface CSSValue
public static CSSNumericValue createPtValue(double value)
public static CSSNumericValue createValue(CSSNumericType type, double value)
Copyright © 2017 Hitachi Vantara. All rights reserved.