Package org.jfree.report.util.beans
Class FloatValueConverter
java.lang.Object
org.jfree.report.util.beans.FloatValueConverter
- All Implemented Interfaces:
ValueConverter
- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the attribute to a string.Converts a string to aFloat.
-
Constructor Details
-
FloatValueConverter
public FloatValueConverter()Creates a new value converter.
-
-
Method Details
-
toAttributeValue
Converts the attribute to a string.- Specified by:
toAttributeValuein interfaceValueConverter- Parameters:
o- the attribute (Floatexpected).- Returns:
- A string representing the
Floatvalue.
-
toPropertyValue
Converts a string to aFloat.- Specified by:
toPropertyValuein interfaceValueConverter- Parameters:
s- the string.- Returns:
- a
Float.
-