Top Description Inners Constructors Methods
javafx.css.converter

public final Class FontConverter

extends StyleConverter<ParsedValue<V, T>[], Font>
Class Inheritance
Imports
com.sun.javafx.util.Utils, javafx.css.Size, .CssMetaData, .ParsedValue, .StyleConverter, .Styleable, javafx.scene.text.Font, .FontPosture, .FontWeight, java.util.Locale, .Map, .Map.Entry

Converter to convert a parsed representation of a Font to a Font.
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FontConverter.FontSizeConverter

Converter to convert a parsed font size value to a Number object.

public static class
FontConverter.FontStyleConverter

Converter to convert a String value to a FontPosture object.

public static class
FontConverter.FontWeightConverter

Converter to convert a String value to a FontWeight object.

private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Font
convert(ParsedValue<ParsedValue<V, T>[], Font> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public Font
convert(Map<CssMetaData<? extends Styleable, ?>, Object> convertedValues)

Overrides javafx.css.StyleConverter.convert.

Convert from the constituent values to the target property type.

public static StyleConverter<ParsedValue<V, T>[], Font>

Returns:

the FontConverter instance
getInstance
()

Gets the FontConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCachegetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

FontConverterback to summary
private FontConverter()

Method Detail

convertback to summary
public Font convert(ParsedValue<ParsedValue<V, T>[], Font> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Annotations
@Override
convertback to summary
public Font convert(Map<CssMetaData<? extends Styleable, ?>, Object> convertedValues)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the constituent values to the target property type. Implemented by Types that have Keys with subKeys.

Annotations
@Override
getInstanceback to summary
public static StyleConverter<ParsedValue<V, T>[], Font> getInstance()

Gets the FontConverter instance.

Returns:StyleConverter<ParsedValue<V, T>[], Font>

the FontConverter instance

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
javafx.css.converter back to summary

public final Class FontConverter.FontSizeConverter

extends StyleConverter<ParsedValue<?, Size>, Number>
Class Inheritance

Converter to convert a parsed font size value to a Number object.
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Number
convert(ParsedValue<ParsedValue<?, Size>, Number> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public static FontConverter.FontSizeConverter

Returns:

the FontSizeConverter instance
getInstance
()

Gets the FontSizeConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

FontSizeConverterback to summary
private FontSizeConverter()

Method Detail

convertback to summary
public Number convert(ParsedValue<ParsedValue<?, Size>, Number> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Annotations
@Override
getInstanceback to summary
public static FontConverter.FontSizeConverter getInstance()

Gets the FontSizeConverter instance.

Returns:FontConverter.FontSizeConverter

the FontSizeConverter instance

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
javafx.css.converter back to summary

private Class FontConverter.FontSizeConverter.Holder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final FontConverter.FontSizeConverter

Constructor Summary

AccessConstructor and Description
private

Field Detail

INSTANCEback to summary
pack-priv static final FontConverter.FontSizeConverter INSTANCE

Constructor Detail

Holderback to summary
private Holder()
javafx.css.converter back to summary

public final Class FontConverter.FontStyleConverter

extends StyleConverter<String, FontPosture>
Class Inheritance

Converter to convert a String value to a FontPosture object.
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public FontPosture
convert(ParsedValue<String, FontPosture> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public static FontConverter.FontStyleConverter

Returns:

the FontStyleConverter instance
getInstance
()

Gets the FontStyleConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

FontStyleConverterback to summary
private FontStyleConverter()

Method Detail

convertback to summary
public FontPosture convert(ParsedValue<String, FontPosture> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Annotations
@Override
getInstanceback to summary
public static FontConverter.FontStyleConverter getInstance()

Gets the FontStyleConverter instance.

Returns:FontConverter.FontStyleConverter

the FontStyleConverter instance

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
javafx.css.converter back to summary

private Class FontConverter.FontStyleConverter.Holder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final FontConverter.FontStyleConverter

Constructor Summary

AccessConstructor and Description
private

Field Detail

INSTANCEback to summary
pack-priv static final FontConverter.FontStyleConverter INSTANCE

Constructor Detail

Holderback to summary
private Holder()
javafx.css.converter back to summary

public final Class FontConverter.FontWeightConverter

extends StyleConverter<String, FontWeight>
Class Inheritance

Converter to convert a String value to a FontWeight object.
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public FontWeight
convert(ParsedValue<String, FontWeight> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

public static FontConverter.FontWeightConverter

Returns:

the FontWeightConverter instance
getInstance
()

Gets the FontWeightConverter instance.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.css.StyleConverter:
cacheValueclearCacheconvertgetBooleanConvertergetCachedValuegetColorConvertergetDurationConvertergetEffectConvertergetEnumConvertergetFontConvertergetInsetsConvertergetPaintConvertergetSizeConvertergetStringConvertergetUrlConverterreadBinarywriteBinary

Constructor Detail

FontWeightConverterback to summary
private FontWeightConverter()

Method Detail

convertback to summary
public FontWeight convert(ParsedValue<String, FontWeight> value, Font font)

Overrides javafx.css.StyleConverter.convert.

Doc from javafx.css.StyleConverter.convert.

Convert from the parsed CSS value to the target property type.

Annotations
@Override
getInstanceback to summary
public static FontConverter.FontWeightConverter getInstance()

Gets the FontWeightConverter instance.

Returns:FontConverter.FontWeightConverter

the FontWeightConverter instance

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
javafx.css.converter back to summary

private Class FontConverter.FontWeightConverter.Holder

extends Object
Class Inheritance
  • java.lang.Object
  • javafx.css.converter.FontConverter.FontWeightConverter.Holder

Field Summary

Modifier and TypeField and Description
pack-priv static final FontConverter.FontWeightConverter

Constructor Summary

AccessConstructor and Description
private

Field Detail

INSTANCEback to summary
pack-priv static final FontConverter.FontWeightConverter INSTANCE

Constructor Detail

Holderback to summary
private Holder()
javafx.css.converter back to summary

private Class FontConverter.Holder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final FontConverter

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final FontConverter INSTANCE

Constructor Detail

Holderback to summary
private Holder()