public final class FontConverter extends StyleConverterImpl<ParsedValue[],Font>
Modifier and Type | Class and Description |
---|---|
static class |
FontConverter.FontSizeConverter |
static class |
FontConverter.FontStyleConverter |
static class |
FontConverter.FontWeightConverter |
Modifier and Type | Method and Description |
---|---|
Font |
convert(Map<CssMetaData<? extends Styleable,?>,Object> convertedValues)
Convert from the constituent values to the target property type.
|
Font |
convert(ParsedValue<ParsedValue[],Font> value,
Font font)
Convert from the parsed CSS value to the target property type.
|
static StyleConverter<ParsedValue[],Font> |
getInstance() |
String |
toString() |
cacheValue, getCachedValue, readBinary, writeBinary
getBooleanConverter, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter
public static StyleConverter<ParsedValue[],Font> getInstance()
public Font convert(ParsedValue<ParsedValue[],Font> value, Font font)
StyleConverter
convert
in class StyleConverter<ParsedValue[],Font>
value
- The ParsedValue
to convertfont
- The Font
to use when converting a
relative
value.public Font convert(Map<CssMetaData<? extends Styleable,?>,Object> convertedValues)
StyleConverterImpl
convert
in class StyleConverterImpl<ParsedValue[],Font>
Copyright © 2020. All rights reserved.