org.jfree.report.util.beans
public class FloatValueConverter extends java.lang.Object implements ValueConverter
Float
attributes to and from their
String
representation.Constructor and Description |
---|
FloatValueConverter()
Creates a new value converter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toAttributeValue(java.lang.Object o)
Converts the attribute to a string.
|
java.lang.Object |
toPropertyValue(java.lang.String s)
Converts a string to a
Float . |
public java.lang.String toAttributeValue(java.lang.Object o)
toAttributeValue
in interface ValueConverter
o
- the attribute (Float
expected).Float
value.public java.lang.Object toPropertyValue(java.lang.String s)
Float
.toPropertyValue
in interface ValueConverter
s
- the string.Float
.