public class CSSNumericValue extends java.lang.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) |
java.lang.String |
getCSSText() |
CSSNumericType |
getType() |
double |
getValue() |
java.lang.String |
toString() |
public static final CSSNumericValue ZERO_LENGTH
protected CSSNumericValue(CSSNumericType type, double value)
public double getValue()
public CSSNumericType getType()
public java.lang.String getCSSText()
getCSSText in interface CSSValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic static CSSNumericValue createPtValue(double value)
public static CSSNumericValue createValue(CSSNumericType type, double value)