Package org.jfree.xml.attributehandlers
Class FloatAttributeHandler
- java.lang.Object
-
- org.jfree.xml.attributehandlers.FloatAttributeHandler
-
- All Implemented Interfaces:
AttributeHandler
public class FloatAttributeHandler extends Object implements AttributeHandler
-
-
Constructor Summary
Constructors Constructor Description FloatAttributeHandler()
Creates a new attribute handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toAttributeValue(Object o)
Converts the attribute to a string.Object
toPropertyValue(String s)
Converts a string to aFloat
.
-
-
-
Method Detail
-
toAttributeValue
public String toAttributeValue(Object o)
Converts the attribute to a string.- Specified by:
toAttributeValue
in interfaceAttributeHandler
- Parameters:
o
- the attribute (Float
expected).- Returns:
- A string representing the
Float
value.
-
toPropertyValue
public Object toPropertyValue(String s)
Converts a string to aFloat
.- Specified by:
toPropertyValue
in interfaceAttributeHandler
- Parameters:
s
- the string.- Returns:
- a
Float
.
-
-