ValueLineHeightValuepublic class FloatValue extends AbstractValue
| Modifier and Type | Field | Description |
|---|---|---|
protected float |
floatValue |
The float value
|
protected static java.lang.String[] |
UNITS |
The unit types representations
|
protected short |
unitType |
The unit type
|
| Constructor | Description |
|---|---|
FloatValue(short unitType,
float floatValue) |
Creates a new value.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getCssText() |
A string representation of the current value.
|
static java.lang.String |
getCssText(short unit,
float value) |
Returns the CSS text associated with the given type/value pair.
|
float |
getFloatValue() |
Returns the float value.
|
short |
getPrimitiveType() |
The type of the value.
|
java.lang.String |
toString() |
Returns a printable representation of this value.
|
createDOMException, getBlue, getBottom, getCssValueType, getGreen, getIdentifier, getLeft, getLength, getListStyle, getRed, getRight, getSeparator, getStringValue, getTop, itemprotected static final java.lang.String[] UNITS
protected float floatValue
protected short unitType
public FloatValue(short unitType,
float floatValue)
public static java.lang.String getCssText(short unit,
float value)
public short getPrimitiveType()
getPrimitiveType in interface ValuegetPrimitiveType in class AbstractValuepublic float getFloatValue()
getFloatValue in interface ValuegetFloatValue in class AbstractValuepublic java.lang.String getCssText()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2018 Apache Software Foundation. All Rights Reserved.