Modifier and Type | Field and Description |
---|---|
static FontConverter |
INSTANCE |
Constructor and Description |
---|
FontConverter() |
Modifier and Type | Method and Description |
---|---|
String |
format(Font font)
Converts a value of the type returned by
Converter.getValueType() to its
plain text representation. |
Class<Font> |
getValueType()
Gets the value type.
|
Font |
parse(String text)
Converts a value from its plain text representation to a Java object instance
of the type returned by
Converter.getValueType() . |
public static final FontConverter INSTANCE
public Class<Font> getValueType()
Converter
getValueType
in interface Converter<Font>
public Font parse(String text) throws ConversionException
Converter
Converter.getValueType()
.parse
in interface Converter<Font>
text
- The textual representation of the value.ConversionException
- If the conversion fails.public String format(Font font)
Converter
Converter.getValueType()
to its
plain text representation.Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.