- java.lang.Object
-
- javafx.css.StyleConverter<ParsedValue[],Font>
-
- javafx.css.converter.FontConverter
-
public final class FontConverter extends StyleConverter<ParsedValue[],Font>
- 从以下版本开始:
- 9
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 描述 static classFontConverter.FontSizeConverterstatic classFontConverter.FontStyleConverterstatic classFontConverter.FontWeightConverter-
Nested classes/interfaces inherited from class javafx.css.StyleConverter
StyleConverter.StringStore
-
-
方法摘要
所有方法 静态方法 接口方法 具体的方法 Modifier and Type 方法 描述 Fontconvert(Map<CssMetaData<? extends Styleable,?>,Object> convertedValues)从成分值转换为目标属性类型。Fontconvert(ParsedValue<ParsedValue[],Font> value, Font font)从解析的CSS值转换为目标属性类型。static StyleConverter<ParsedValue[],Font>getInstance()StringtoString()返回对象的字符串表示形式。-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class javafx.css.StyleConverter
cacheValue, clearCache, getBooleanConverter, getCachedValue, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter, readBinary, writeBinary
-
-
-
-
方法详细信息
-
getInstance
public static StyleConverter<ParsedValue[],Font> getInstance()
-
convert
public Font convert(ParsedValue<ParsedValue[],Font> value, Font font)
描述从类复制:StyleConverter从解析的CSS值转换为目标属性类型。- 重写:
-
convert在StyleConverter<ParsedValue[],Font> - 参数
-
value- 要转换的ParsedValue -
font-该Font到转换时使用relative值。 - 结果
- 转换的目标属性类型
-
convert
public Font convert(Map<CssMetaData<? extends Styleable,?>,Object> convertedValues)
描述从类别复制:StyleConverter从成分值转换为目标属性类型。 由具有子键的键类型实现。- 重写:
-
convert在StyleConverter<ParsedValue[],Font> - 参数
-
convertedValues- 组成价值 - 结果
- 目标属性类型
-
toString
public String toString()
描述从类别复制:Object返回对象的字符串表示形式。 一般情况下,toString方法返回一个字符串“toString代表”这个对象。 结果应该是一个简明扼要的表达,容易让人阅读。 建议所有子类覆盖此方法。该
toString类方法Object返回一个由类的名称,其中所述对象是其实例,该符号字符`的字符串@”,并且对象的哈希码的无符号的十六进制表示。 换句话说,这个方法返回一个等于下列值的字符串:getClass().getName() + '@' + Integer.toHexString(hashCode())
-
-