public final class EnumConverter<E extends Enum<E>> extends StyleConverterImpl<String,E>
Constructor and Description |
---|
EnumConverter(Class<E> enumClass) |
Modifier and Type | Method and Description |
---|---|
E |
convert(ParsedValue<String,E> value,
Font not_used)
Convert from the parsed CSS value to the target property type.
|
boolean |
equals(Object other) |
static StyleConverter<?,?> |
getInstance(String ename) |
int |
hashCode() |
static StyleConverter<?,?> |
readBinary(DataInputStream is,
String[] strings) |
String |
toString() |
void |
writeBinary(DataOutputStream os,
StringStore sstore) |
cacheValue, convert, getCachedValue
getBooleanConverter, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter
public E convert(ParsedValue<String,E> value, Font not_used)
StyleConverter
convert
in class StyleConverter<String,E extends Enum<E>>
value
- The ParsedValue
to convertnot_used
- The Font
to use when converting a
relative
value.public void writeBinary(DataOutputStream os, StringStore sstore) throws IOException
writeBinary
in class StyleConverterImpl<String,E extends Enum<E>>
IOException
public static StyleConverter<?,?> readBinary(DataInputStream is, String[] strings) throws IOException
IOException
public static StyleConverter<?,?> getInstance(String ename)
Copyright © 2020. All rights reserved.