org.apache.batik.css.engine.value

Class FloatValue

public class FloatValue extends AbstractValue

This class represents float values.
Field Summary
protected floatfloatValue
The float value
protected shortunitType
The unit type
protected static String[]UNITS
The unit types representations
Constructor Summary
FloatValue(short unitType, float floatValue)
Creates a new value.
Method Summary
static StringgetCssText(short unit, float value)
Returns the CSS text associated with the given type/value pair.
StringgetCssText()
A string representation of the current value.
floatgetFloatValue()
Returns the float value.
shortgetPrimitiveType()
The type of the value.
StringtoString()
Returns a printable representation of this value.

Field Detail

floatValue

protected float floatValue
The float value

unitType

protected short unitType
The unit type

UNITS

protected static final String[] UNITS
The unit types representations

Constructor Detail

FloatValue

public FloatValue(short unitType, float floatValue)
Creates a new value.

Method Detail

getCssText

public static String getCssText(short unit, float value)
Returns the CSS text associated with the given type/value pair.

getCssText

public String getCssText()
A string representation of the current value.

getFloatValue

public float getFloatValue()
Returns the float value.

getPrimitiveType

public short getPrimitiveType()
The type of the value.

toString

public String toString()
Returns a printable representation of this value.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.