java.io.Serializable
, CSSValue
CSSTimeValue
public class CSSNumericValue extends java.lang.Object implements CSSValue
Modifier and Type | Field | Description |
---|---|---|
static CSSNumericValue |
ZERO_LENGTH |
Modifier | Constructor | Description |
---|---|---|
protected |
CSSNumericValue(CSSNumericType type,
double value) |
Modifier and Type | Method | 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 CSSValue
public java.lang.String toString()
toString
in class java.lang.Object
public static CSSNumericValue createPtValue(double value)
public static CSSNumericValue createValue(CSSNumericType type, double value)