public final class DurationConverter extends StyleConverterImpl<ParsedValue<?,Size>,Duration>
Modifier and Type | Method and Description |
---|---|
Duration |
convert(ParsedValue<ParsedValue<?,Size>,Duration> value,
Font font)
Convert from the parsed CSS value to the target property type.
|
static StyleConverter<ParsedValue<?,Size>,Duration> |
getInstance() |
String |
toString() |
cacheValue, convert, getCachedValue, readBinary, writeBinary
getBooleanConverter, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter
public static StyleConverter<ParsedValue<?,Size>,Duration> getInstance()
public Duration convert(ParsedValue<ParsedValue<?,Size>,Duration> value, Font font)
StyleConverter
convert
in class StyleConverter<ParsedValue<?,Size>,Duration>
value
- The ParsedValue
to convertfont
- The Font
to use when converting a
relative
value.Copyright © 2020. All rights reserved.