Package com.bc.ceres.binding.converters
Class AffineTransformConverter
- java.lang.Object
-
- com.bc.ceres.binding.converters.AffineTransformConverter
-
- All Implemented Interfaces:
Converter<AffineTransform>
public class AffineTransformConverter extends Object implements Converter<AffineTransform>
-
-
Constructor Summary
Constructors Constructor Description AffineTransformConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(AffineTransform transform)Converts a value of the type returned byConverter.getValueType()to its plain text representation.Class<? extends AffineTransform>getValueType()Gets the value type.AffineTransformparse(String text)Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().
-
-
-
Method Detail
-
getValueType
public Class<? extends AffineTransform> getValueType()
Description copied from interface:ConverterGets the value type.- Specified by:
getValueTypein interfaceConverter<AffineTransform>- Returns:
- The value type.
-
parse
public AffineTransform parse(String text) throws ConversionException
Description copied from interface:ConverterConverts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType().- Specified by:
parsein interfaceConverter<AffineTransform>- Parameters:
text- The textual representation of the value.- Returns:
- The converted value.
- Throws:
ConversionException- If the conversion fails.
-
format
public String format(AffineTransform transform)
Description copied from interface:ConverterConverts a value of the type returned byConverter.getValueType()to its plain text representation.- Specified by:
formatin interfaceConverter<AffineTransform>- Parameters:
transform- The value to be converted to text.- Returns:
- The textual representation of the value.
-
-