Package | Description |
---|---|
javafx.css |
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
|
javafx.scene.canvas |
Provides the set of classes for canvas, an immediate mode style of rendering API.
|
javafx.scene.chart |
The JavaFX User Interface provides a set of chart components that
are a very convenient way for data visualization.
|
javafx.scene.control |
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
|
javafx.scene.text |
Provides the set of classes for fonts and renderable Text Node.
|
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(String property,
Function<S,StyleableProperty<Font>> function)
Create a CssMetaData<S, Font> with initial value of
getDefault() , and inherit flag defaulting to true. |
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(String property,
Function<S,StyleableProperty<Font>> function,
Font initialValue)
Create a CssMetaData<S, Font> with initial value, and inherit flag defaulting to true.
|
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(String property,
Function<S,StyleableProperty<Font>> function,
Font initialValue,
boolean inherits)
Create a CssMetaData<S, Font> with initial value, and inherit flag.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
String propertyName,
String cssProperty)
Create a StyleableProperty<Font> using previously created CssMetaData for the given
cssProperty . |
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Font>> function)
Create a StyleableProperty<Font>.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Font>> function,
Font initialValue)
Create a StyleableProperty<Font> with initial value.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Font>> function,
Font initialValue,
boolean inherits)
Create a StyleableProperty<Font> with initial value and inherit flag.
|
static StyleConverter<ParsedValue[],Font> |
StyleConverter.getFontConverter() |
Modifier and Type | Method and Description |
---|---|
T |
ParsedValue.convert(Font font)
Convenience method for calling
convert
on this ParsedValue . |
T |
StyleConverter.convert(ParsedValue<F,T> value,
Font font)
Convert from the parsed CSS value to the target property type.
|
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(String property,
Function<S,StyleableProperty<Font>> function,
Font initialValue)
Create a CssMetaData<S, Font> with initial value, and inherit flag defaulting to true.
|
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(String property,
Function<S,StyleableProperty<Font>> function,
Font initialValue,
boolean inherits)
Create a CssMetaData<S, Font> with initial value, and inherit flag.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Font>> function,
Font initialValue)
Create a StyleableProperty<Font> with initial value.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Font>> function,
Font initialValue,
boolean inherits)
Create a StyleableProperty<Font> with initial value and inherit flag.
|
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(String property,
Function<S,StyleableProperty<Font>> function)
Create a CssMetaData<S, Font> with initial value of
getDefault() , and inherit flag defaulting to true. |
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(String property,
Function<S,StyleableProperty<Font>> function,
Font initialValue)
Create a CssMetaData<S, Font> with initial value, and inherit flag defaulting to true.
|
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(String property,
Function<S,StyleableProperty<Font>> function,
Font initialValue,
boolean inherits)
Create a CssMetaData<S, Font> with initial value, and inherit flag.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Font>> function)
Create a StyleableProperty<Font>.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Font>> function,
Font initialValue)
Create a StyleableProperty<Font> with initial value.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
String propertyName,
String cssProperty,
Function<S,StyleableProperty<Font>> function,
Font initialValue,
boolean inherits)
Create a StyleableProperty<Font> with initial value and inherit flag.
|
Constructor and Description |
---|
FontCssMetaData(String property,
Font initial)
The property name is concatenated with "-weight",
"-style", "-family" and "-size" to
create the sub-properties.
|
Modifier and Type | Method and Description |
---|---|
Font |
GraphicsContext.getFont()
Gets the current Font.
|
Modifier and Type | Method and Description |
---|---|
void |
GraphicsContext.setFont(Font f)
Sets the current Font.
|
Modifier and Type | Method and Description |
---|---|
Font |
Axis.getTickLabelFont()
Gets the value of the property tickLabelFont.
|
Modifier and Type | Method and Description |
---|---|
ObjectProperty<Font> |
Axis.tickLabelFontProperty()
The font for all tick labels
|
Modifier and Type | Method and Description |
---|---|
void |
Axis.setTickLabelFont(Font value)
Sets the value of the property tickLabelFont.
|
Modifier and Type | Method and Description |
---|---|
Font |
Labeled.getFont()
Gets the value of the property font.
|
Font |
TextInputControl.getFont()
Gets the value of the property font.
|
Font |
Tooltip.getFont()
Gets the value of the property font.
|
Modifier and Type | Method and Description |
---|---|
ObjectProperty<Font> |
Labeled.fontProperty()
The default font to use for text in the Labeled.
|
ObjectProperty<Font> |
TextInputControl.fontProperty()
The default font to use for text in the TextInputControl.
|
ObjectProperty<Font> |
Tooltip.fontProperty()
The default font to use for text in the Tooltip.
|
Modifier and Type | Method and Description |
---|---|
void |
Labeled.setFont(Font value)
Sets the value of the property font.
|
void |
TextInputControl.setFont(Font value)
Sets the value of the property font.
|
void |
Tooltip.setFont(Font value)
Sets the value of the property font.
|
Modifier and Type | Method and Description |
---|---|
static Font |
Font.font(double size)
Searches for an appropriate font based on the default font family name and
given font size.
|
static Font |
Font.font(String family)
Searches for an appropriate font based on the given font family name and
default font size.
|
static Font |
Font.font(String family,
double size)
Searches for an appropriate font based on the font family name and size.
|
static Font |
Font.font(String family,
FontPosture posture,
double size)
Searches for an appropriate font based on the font family name and posture
style.
|
static Font |
Font.font(String family,
FontWeight weight,
double size)
Searches for an appropriate font based on the font family name and weight
style.
|
static Font |
Font.font(String family,
FontWeight weight,
FontPosture posture,
double size)
Searches for an appropriate font based on the font family name and
weight and posture style.
|
static Font |
Font.getDefault()
Gets the default font which will be from the family "System",
and typically the style "Regular", and be of a size consistent
with the user's desktop environment, to the extent that can
be determined.
|
Font |
Text.getFont()
Gets the value of the property font.
|
static Font |
Font.impl_NativeFont(Object f,
String name,
String family,
String style,
double size)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
static Font |
Font.loadFont(InputStream in,
double size)
Loads a font resource from the specified input stream.
|
static Font |
Font.loadFont(String urlStr,
double size)
Loads a font resource from the specified URL.
|
Modifier and Type | Method and Description |
---|---|
ObjectProperty<Font> |
Text.fontProperty()
Defines the font of text.
|
Modifier and Type | Method and Description |
---|---|
void |
Text.setFont(Font value)
Sets the value of the property font.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.