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.- Version:
- $Id: FloatValue.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected floatfloatValueThe float valueprotected static java.lang.String[]UNITSThe unit types representationsprotected shortunitTypeThe 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.StringgetCssText()A string representation of the current value.static java.lang.StringgetCssText(short unit, float value)Returns the CSS text associated with the given type/value pair.floatgetFloatValue()Returns the float value.shortgetPrimitiveType()The type of the value.java.lang.StringtoString()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:
getPrimitiveTypein interfaceValue- Overrides:
getPrimitiveTypein classAbstractValue
-
getFloatValue
public float getFloatValue()
Returns the float value.- Specified by:
getFloatValuein interfaceValue- Overrides:
getFloatValuein 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:
toStringin classjava.lang.Object
-
-