Spec-Zone.ru › OpenJavaFX 24

Class FontCssMetaData<S extends Styleable>

java.lang.Object
javafx.css.CssMetaData<S,Font>
javafx.css.FontCssMetaData<S>
Type Parameters:
S - The type of Styleable
public abstract class FontCssMetaData<S extends Styleable> extends CssMetaData<S,Font>
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

Constructor Description
FontCssMetaData(String property, Font initial)
Constructs a FontCSSMetaData object from the specified property and initial Font.

Method Summary

Methods declared in class javafx.css.CssMetaData

equals, getConverter, getInitialValue, getProperty, getStyleableProperty, getSubProperties, isInherits, isSettable, set

Methods declared in class java.lang.Object

clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

FontCssMetaData

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 - the property name
initial - the initial font

Report a bug or suggest an enhancement
Copyright © 2008, 2025, Oracle and/or its affiliates. All rights reserved.

© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API