Class RectangleConverter
- java.lang.Object
-
- org.esa.snap.core.util.converters.RectangleConverter
-
-
Constructor Summary
Constructors Constructor Description RectangleConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(Rectangle r)
Converts a value of the type returned byConverter.getValueType()
to its plain text representation.Class<Rectangle>
getValueType()
Gets the value type.Rectangle
parse(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<Rectangle> getValueType()
Description copied from interface:Converter
Gets the value type.- Specified by:
getValueType
in interfaceConverter<Rectangle>
- Returns:
- The value type.
-
parse
public Rectangle parse(String text) throws ConversionException
Description copied from interface:Converter
Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType()
.- Specified by:
parse
in interfaceConverter<Rectangle>
- Parameters:
text
- The textual representation of the value.- Returns:
- The converted value.
- Throws:
ConversionException
- If the conversion fails.
-
format
public String format(Rectangle r)
Description copied from interface:Converter
Converts a value of the type returned byConverter.getValueType()
to its plain text representation.
-
-