Class FloatValue
- java.lang.Object
-
- org.apache.batik.css.engine.value.AbstractValue
-
- org.apache.batik.css.engine.value.FloatValue
-
- All Implemented Interfaces:
Value
- Direct Known Subclasses:
LineHeightValue
public class FloatValue extends AbstractValue
This class represents float values.
-
-
Field Summary
Fields Modifier and Type Field Description protected float
floatValue
The float valueprotected static java.lang.String[]
UNITS
The unit types representationsprotected short
unitType
The unit type
-
Constructor Summary
Constructors Constructor Description FloatValue(short unitType, float floatValue)
Creates a new value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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.-
Methods inherited from class org.apache.batik.css.engine.value.AbstractValue
createDOMException, getBlue, getBottom, getCssValueType, getGreen, getIdentifier, getLeft, getLength, getListStyle, getRed, getRight, getSeparator, getStringValue, getTop, item
-
-
-
-
Method Detail
-
getCssText
public static java.lang.String getCssText(short unit, float value)
Returns the CSS text associated with the given type/value pair.
-
getPrimitiveType
public short getPrimitiveType()
The type of the value.- Specified by:
getPrimitiveType
in interfaceValue
- Overrides:
getPrimitiveType
in classAbstractValue
-
getFloatValue
public float getFloatValue()
Returns the float value.- Specified by:
getFloatValue
in interfaceValue
- Overrides:
getFloatValue
in classAbstractValue
-
getCssText
public java.lang.String getCssText()
A string representation of the current value.
-
toString
public java.lang.String toString()
Returns a printable representation of this value.- Overrides:
toString
in classjava.lang.Object
-
-