public class ParsedValueImpl<V,T> extends ParsedValue<V,T>
ParsedValueImpl
.converter, value
Constructor and Description |
---|
ParsedValueImpl(V value,
StyleConverter<V,T> type)
Create an instance of ParsedValueImpl where the value type V is converted to
the target type T using the given Type converter.
|
ParsedValueImpl(V value,
StyleConverter<V,T> converter,
boolean lookup)
Create an instance of ParsedValueImpl where the value type V is converted to
the target type T using the given Type converter.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
containsFontRelativeSize(ParsedValue parsedValue,
boolean percentUnitsAreRelative) |
T |
convert(Font font)
Convenience method for calling
convert
on this ParsedValue . |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isContainsLookups() |
boolean |
isLookup() |
static ParsedValueImpl |
readBinary(int bssVersion,
DataInputStream is,
String[] strings) |
String |
toString() |
void |
writeBinary(DataOutputStream os,
StringStore stringStore) |
getConverter, getValue
public ParsedValueImpl(V value, StyleConverter<V,T> converter, boolean lookup)
public ParsedValueImpl(V value, StyleConverter<V,T> type)
public final boolean isLookup()
public final boolean isContainsLookups()
public static boolean containsFontRelativeSize(ParsedValue parsedValue, boolean percentUnitsAreRelative)
public T convert(Font font)
ParsedValue
convert
on this ParsedValue
.convert
in class ParsedValue<V,T>
font
- The Font
to use when converting a
relative
value.StyleableProperty
ParsedValue.getConverter()
public final void writeBinary(DataOutputStream os, StringStore stringStore) throws IOException
IOException
public static ParsedValueImpl readBinary(int bssVersion, DataInputStream is, String[] strings) throws IOException
IOException
Copyright © 2020. All rights reserved.