Top Description Constructors Methods
javafx.css

public abstract Class FontCssMetaData<S extends Styleable>

extends CssMetaData<S extends Styleable, Font>
Class Inheritance
Type Parameters
<S>
The type of Styleable
Imports
javafx.css.converter.FontConverter, .SizeConverter, .StringConverter, java.util.ArrayList, .Collections, .List, javafx.scene.text.Font, .FontPosture, .FontWeight

An partial implementation of CssMetaData for Font properties which includes the font sub-properties: weight, style, family and size.
Since
JavaFX 8.0

Constructor Summary

AccessConstructor and Description
public
FontCssMetaData(String
the property name
property
,
Font
the initial font
initial
)

Constructs a FontCSSMetaData object from the specified property and initial Font.

Method Summary

Modifier and TypeMethod and Description
private static <S extends Styleable> List<CssMetaData<? extends Styleable, ?>>
createSubProperties(String property, Font initial)

Inherited from javafx.css.CssMetaData:
equalsgetConvertergetInitialValuegetPropertygetStyleablePropertygetSubPropertieshashCodeisInheritsisSettablesettoString

Constructor Detail

FontCssMetaDataback to summary
public FontCssMetaData(String property, Font initial)

Constructs a FontCSSMetaData object from the specified property and initial Font. The property name is concatenated with "-weight", "-style", "-family" and "-size" to create the sub-properties. For example, new FontCssMetaData<Text>("-fx-font", Font.getDefault()); will create a CssMetaData for "-fx-font" with sub-properties: "-fx-font-weight", "-fx-font-style", "-fx-font-family" and "-fx-font-size"

Parameters
property:String

the property name

initial:Font

the initial font

Method Detail

createSubPropertiesback to summary
private static <S extends Styleable> List<CssMetaData<? extends Styleable, ?>> createSubProperties(String property, Font initial)