|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.css.engine.value.AbstractValue
org.apache.batik.css.engine.value.FloatValue
public class FloatValue
This class represents float values.
Field Summary | |
---|---|
protected float |
floatValue
The float value |
protected static java.lang.String[] |
UNITS
The unit types representations |
protected short |
unitType
The unit type |
Constructor Summary | |
---|---|
FloatValue(short unitType,
float floatValue)
Creates a new value. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String[] UNITS
protected float floatValue
protected short unitType
Constructor Detail |
---|
public FloatValue(short unitType, float floatValue)
Method Detail |
---|
public static java.lang.String getCssText(short unit, float value)
public short getPrimitiveType()
getPrimitiveType
in interface Value
getPrimitiveType
in class AbstractValue
public float getFloatValue()
getFloatValue
in interface Value
getFloatValue
in class AbstractValue
public java.lang.String getCssText()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |