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, getCachedValuegetBooleanConverter, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverterpublic E convert(ParsedValue<String,E> value, Font not_used)
StyleConverterconvert 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>>IOExceptionpublic static StyleConverter<?,?> readBinary(DataInputStream is, String[] strings) throws IOException
IOExceptionpublic static StyleConverter<?,?> getInstance(String ename)
Copyright © 2025. All rights reserved.