Package | Description |
---|---|
com.sun.javafx.css | |
com.sun.javafx.css.converters | |
com.sun.javafx.css.parser | |
com.sun.javafx.font | |
com.sun.javafx.fxml.builder | |
com.sun.javafx.scene.control.skin | |
com.sun.javafx.scene.layout.region | |
com.sun.javafx.tk | |
javafx.css |
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
|
javafx.scene |
Provides the core set of base
classes for the JavaFX Scene Graph API.
|
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 |
---|---|
T |
ParsedValueImpl.convert(Font font) |
(package private) abstract double |
SizeUnits.pixels(double value,
double multiplier,
Font font) |
double |
Size.pixels(double multiplier,
Font font)
Convert this size into pixels
|
double |
Size.pixels(Font font)
If size is not an absolute size, return the product of font size in pixels
and value.
|
private static double |
SizeUnits.pixelSize(Font font) |
(package private) abstract double |
SizeUnits.points(double value,
double multiplier,
Font font) |
double |
Size.points(double multiplier,
Font font)
Convert this size into points
|
double |
Size.points(Font font)
Convert this size into Points units, a Point is 1/72 of a inch
|
private static double |
SizeUnits.pointSize(Font font) |
Constructor and Description |
---|
Key(java.util.Set<PseudoClass>[] pseudoClassStates,
Font font) |
Modifier and Type | Method and Description |
---|---|
Font |
FontConverter.convert(java.util.Map<CssMetaData<? extends Styleable,?>,java.lang.Object> convertedValues) |
Font |
FontConverter.convert(ParsedValue<ParsedValue[],Font> value,
Font font) |
Modifier and Type | Method and Description |
---|---|
static StyleConverter<ParsedValue[],Font> |
FontConverter.getInstance() |
Modifier and Type | Method and Description |
---|---|
Effect |
EffectConverter.convert(ParsedValue<ParsedValue[],Effect> value,
Font font) |
Effect |
EffectConverter.DropShadowConverter.convert(ParsedValue<ParsedValue[],Effect> value,
Font font) |
Effect |
EffectConverter.InnerShadowConverter.convert(ParsedValue<ParsedValue[],Effect> value,
Font font) |
Font |
FontConverter.convert(ParsedValue<ParsedValue[],Font> value,
Font font) |
Insets |
InsetsConverter.convert(ParsedValue<ParsedValue[],Insets> value,
Font font) |
java.lang.Number[] |
SizeConverter.SequenceConverter.convert(ParsedValue<ParsedValue[],java.lang.Number[]> value,
Font font) |
Paint |
PaintConverter.LinearGradientConverter.convert(ParsedValue<ParsedValue[],Paint> value,
Font font) |
Paint |
PaintConverter.ImagePatternConverter.convert(ParsedValue<ParsedValue[],Paint> value,
Font font) |
Paint |
PaintConverter.RepeatingImagePatternConverter.convert(ParsedValue<ParsedValue[],Paint> value,
Font font) |
Paint |
PaintConverter.RadialGradientConverter.convert(ParsedValue<ParsedValue[],Paint> value,
Font font) |
java.lang.String |
URLConverter.convert(ParsedValue<ParsedValue[],java.lang.String> value,
Font font) |
Paint[] |
PaintConverter.SequenceConverter.convert(ParsedValue<ParsedValue<?,Paint>[],Paint[]> value,
Font font) |
Paint |
PaintConverter.convert(ParsedValue<ParsedValue<?,Paint>,Paint> value,
Font font) |
Duration |
DurationConverter.convert(ParsedValue<ParsedValue<?,Size>,Duration> value,
Font font) |
java.lang.Number |
SizeConverter.convert(ParsedValue<ParsedValue<?,Size>,java.lang.Number> value,
Font font) |
java.lang.Number |
FontConverter.FontSizeConverter.convert(ParsedValue<ParsedValue<?,Size>,java.lang.Number> value,
Font font) |
Insets[] |
InsetsConverter.SequenceConverter.convert(ParsedValue<ParsedValue<ParsedValue[],Insets>[],Insets[]> value,
Font font) |
java.lang.String[] |
URLConverter.SequenceConverter.convert(ParsedValue<ParsedValue<ParsedValue[],java.lang.String>[],java.lang.String[]> value,
Font font) |
java.lang.String[] |
StringConverter.SequenceConverter.convert(ParsedValue<ParsedValue<java.lang.String,java.lang.String>[],java.lang.String[]> value,
Font font) |
java.lang.Boolean |
BooleanConverter.convert(ParsedValue<java.lang.String,java.lang.Boolean> value,
Font not_used) |
Color |
ColorConverter.convert(ParsedValue<java.lang.String,Color> value,
Font font) |
Cursor |
CursorConverter.convert(ParsedValue<java.lang.String,Cursor> value,
Font not_used) |
E |
EnumConverter.convert(ParsedValue<java.lang.String,E> value,
Font not_used) |
FontPosture |
FontConverter.FontStyleConverter.convert(ParsedValue<java.lang.String,FontPosture> value,
Font font) |
FontWeight |
FontConverter.FontWeightConverter.convert(ParsedValue<java.lang.String,FontWeight> value,
Font font) |
Shape |
ShapeConverter.convert(ParsedValue<java.lang.String,Shape> value,
Font font) |
java.lang.String |
StringConverter.convert(ParsedValue<java.lang.String,java.lang.String> value,
Font font) |
Modifier and Type | Method and Description |
---|---|
Font |
FontConverter.convert(ParsedValue<ParsedValue[],Font> value,
Font font) |
Modifier and Type | Method and Description |
---|---|
private ParsedValueImpl<ParsedValue[],Font> |
CSSParser.parseFont(CSSParser.Term root) |
Modifier and Type | Method and Description |
---|---|
Color |
LadderConverter.convert(ParsedValue<ParsedValue[],Color> value,
Font font) |
Color |
DeriveColorConverter.convert(ParsedValue<ParsedValue[],Color> value,
Font font) |
Stop |
StopConverter.convert(ParsedValue<ParsedValue[],Stop> value,
Font font) |
Size |
DeriveSizeConverter.convert(ParsedValue<ParsedValue<Size,Size>[],Size> value,
Font font) |
Modifier and Type | Method and Description |
---|---|
private Font |
PrismFontLoader.createFont(PGFont font) |
Font |
PrismFontLoader.font(java.lang.String family,
FontWeight weight,
FontPosture posture,
float size)
Searches for an appropriate font based on the font family name and
weight and posture style.
|
Font |
PrismFontLoader.loadFont(java.io.InputStream in,
double size) |
Font |
PrismFontLoader.loadFont(java.lang.String path,
double size) |
Modifier and Type | Method and Description |
---|---|
float |
PrismFontLoader.computeStringWidth(java.lang.String string,
Font font) |
FontMetrics |
PrismFontLoader.getFontMetrics(Font font) |
void |
PrismFontLoader.loadFont(Font font) |
Modifier and Type | Method and Description |
---|---|
Font |
JavaFXFontBuilder.build() |
Modifier and Type | Field and Description |
---|---|
private static CssMetaData<LabeledText,Font> |
LabeledText.FONT |
private LabeledText.StyleablePropertyMirror<Font> |
LabeledText.fontMirror |
Modifier and Type | Method and Description |
---|---|
private StyleableProperty<Font> |
LabeledText.fontMirror() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
Utils.computeClippedText(Font font,
java.lang.String text,
double width,
OverrunStyle type,
java.lang.String ellipsisString) |
(package private) static java.lang.String |
Utils.computeClippedWrappedText(Font font,
java.lang.String text,
double width,
double height,
OverrunStyle truncationStyle,
java.lang.String ellipsisString,
TextBoundsType boundsType) |
(package private) static int |
Utils.computeEndOfWord(Font font,
java.lang.String text,
int index) |
(package private) static int |
Utils.computeStartOfWord(Font font,
java.lang.String text,
int index) |
(package private) static double |
Utils.computeTextHeight(Font font,
java.lang.String text,
double wrappingWidth,
double lineSpacing,
TextBoundsType boundsType) |
(package private) static double |
Utils.computeTextHeight(Font font,
java.lang.String text,
double wrappingWidth,
TextBoundsType boundsType) |
(package private) static double |
Utils.computeTextWidth(Font font,
java.lang.String text,
double wrappingWidth) |
(package private) static int |
Utils.computeTruncationIndex(Font font,
java.lang.String text,
double width) |
(package private) static double |
Utils.getAscent(Font font,
TextBoundsType boundsType) |
(package private) static double |
Utils.getLineHeight(Font font,
TextBoundsType boundsType) |
private static boolean |
Utils.requiresComplexLayout(Font font,
java.lang.String string) |
Modifier and Type | Field and Description |
---|---|
private Font |
FontMetrics.font
The font that was used to construct these metrics.
|
Modifier and Type | Method and Description |
---|---|
abstract Font |
FontLoader.font(java.lang.String family,
FontWeight weight,
FontPosture posture,
float size) |
Font |
FontMetrics.getFont() |
abstract Font |
FontLoader.loadFont(java.io.InputStream in,
double size) |
abstract Font |
FontLoader.loadFont(java.lang.String path,
double size) |
Modifier and Type | Method and Description |
---|---|
abstract float |
FontLoader.computeStringWidth(java.lang.String string,
Font font) |
abstract FontMetrics |
FontLoader.getFontMetrics(Font font) |
static FontMetrics |
FontMetrics.impl_createFontMetrics(float maxAscent,
float ascent,
float xheight,
float descent,
float maxDescent,
float leading,
Font font) |
abstract void |
FontLoader.loadFont(Font font) |
Constructor and Description |
---|
FontMetrics(float maxAscent,
float ascent,
float xheight,
float descent,
float maxDescent,
float leading,
Font font) |
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(java.lang.String property,
java.util.function.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(java.lang.String property,
java.util.function.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(java.lang.String property,
java.util.function.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,
java.lang.String propertyName,
java.lang.String cssProperty)
Create a StyleableProperty<Font> using previously created CssMetaData for the given
cssProperty . |
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Font>> function)
Create a StyleableProperty<Font>.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Font>> function,
Font initialValue)
Create a StyleableProperty<Font> with initial value.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.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(java.lang.String property,
java.util.function.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(java.lang.String property,
java.util.function.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,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Font>> function,
Font initialValue)
Create a StyleableProperty<Font> with initial value.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Font>> function,
Font initialValue,
boolean inherits)
Create a StyleableProperty<Font> with initial value and inherit flag.
|
private static <S extends Styleable> |
FontCssMetaData.createSubProperties(java.lang.String property,
Font initial) |
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Font> |
StyleablePropertyFactory.createFontCssMetaData(java.lang.String property,
java.util.function.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(java.lang.String property,
java.util.function.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(java.lang.String property,
java.util.function.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,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Font>> function)
Create a StyleableProperty<Font>.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Font>> function,
Font initialValue)
Create a StyleableProperty<Font> with initial value.
|
StyleableProperty<Font> |
StyleablePropertyFactory.createStyleableFontProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Font>> function,
Font initialValue,
boolean inherits)
Create a StyleableProperty<Font> with initial value and inherit flag.
|
Constructor and Description |
---|
FontCssMetaData(java.lang.String property,
Font initial)
The property name is concatenated with "-weight",
"-style", "-family" and "-size" to
create the sub-properties.
|
Modifier and Type | Field and Description |
---|---|
private CssMetaData<Styleable,Font> |
CssStyleHelper.CacheContainer.fontProp |
Modifier and Type | Method and Description |
---|---|
(package private) Font |
CssStyleHelper.deriveFont(Font font,
java.lang.String fontFamily,
FontWeight fontWeight,
FontPosture fontPosture,
double fontSize) |
Modifier and Type | Method and Description |
---|---|
(package private) Font |
CssStyleHelper.deriveFont(Font font,
java.lang.String fontFamily,
FontWeight fontWeight,
FontPosture fontPosture,
double fontSize) |
(package private) java.lang.String |
CssStyleHelper.getFontFamily(Font font) |
(package private) FontPosture |
CssStyleHelper.getFontPosture(Font font) |
(package private) FontWeight |
CssStyleHelper.getFontWeight(Font font) |
Modifier and Type | Field and Description |
---|---|
(package private) Font |
GraphicsContext.State.font |
Modifier and Type | Method and Description |
---|---|
Font |
GraphicsContext.getFont()
Gets the current Font.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
GraphicsContext.State.set(double globalAlpha,
BlendMode blendop,
Affine2D transform,
Paint fill,
Paint stroke,
double linewidth,
StrokeLineCap linecap,
StrokeLineJoin linejoin,
double miterlimit,
double[] dashes,
double dashOffset,
int numClipPaths,
Font font,
FontSmoothingType smoothing,
TextAlignment align,
VPos baseline,
Effect effect,
FillRule fillRule) |
void |
GraphicsContext.setFont(Font f)
Sets the current Font.
|
Modifier and Type | Field and Description |
---|---|
private Font |
AxisBuilder.tickLabelFont
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private static CssMetaData<Axis<?>,Font> |
Axis.StyleableProperties.TICK_LABEL_FONT |
private ObjectProperty<Font> |
Axis.tickLabelFont
The font for all tick labels
|
Modifier and Type | Method and Description |
---|---|
Font |
Axis.getTickLabelFont() |
Modifier and Type | Method and Description |
---|---|
ObjectProperty<Font> |
Axis.tickLabelFontProperty() |
Modifier and Type | Method and Description |
---|---|
void |
Axis.setTickLabelFont(Font value) |
B |
AxisBuilder.tickLabelFont(Font x)
Deprecated.
Set the value of the
tickLabelFont property for the instance constructed by this builder. |
Modifier and Type | Field and Description |
---|---|
private Font |
TooltipBuilder.font
Deprecated.
|
private Font |
LabeledBuilder.font
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private ObjectProperty<Font> |
Tooltip.font |
private ObjectProperty<Font> |
TextInputControl.font |
private ObjectProperty<Font> |
Labeled.font |
private static CssMetaData<Tooltip.CSSBridge,Font> |
Tooltip.FONT
*
Stylesheet Handling *
*
|
Modifier and Type | Method and Description |
---|---|
Font |
Tooltip.getFont() |
Font |
TextInputControl.getFont() |
Font |
Labeled.getFont() |
Modifier and Type | Method and Description |
---|---|
ObjectProperty<Font> |
Tooltip.fontProperty()
The default font to use for text in the Tooltip.
|
ObjectProperty<Font> |
TextInputControl.fontProperty()
The default font to use for text in the TextInputControl.
|
ObjectProperty<Font> |
Labeled.fontProperty()
The default font to use for text in the Labeled.
|
Modifier and Type | Method and Description |
---|---|
B |
TooltipBuilder.font(Font x)
Deprecated.
Set the value of the
font property for the instance constructed by this builder. |
B |
LabeledBuilder.font(Font x)
Deprecated.
Set the value of the
font property for the instance constructed by this builder. |
void |
Tooltip.setFont(Font value) |
void |
TextInputControl.setFont(Font value) |
void |
Labeled.setFont(Font value) |
Modifier and Type | Field and Description |
---|---|
private static Font |
Font.DEFAULT |
private Font |
TextBuilder.font
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private ObjectProperty<Font> |
Text.font
Defines the font of text.
|
private static CssMetaData<Text,Font> |
Text.StyleableProperties.FONT |
Modifier and Type | Method and Description |
---|---|
Font |
FontBuilder.build()
Deprecated.
Make an instance of
Font based on the properties set on this builder. |
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(java.lang.String family)
Searches for an appropriate font based on the given font family name and
default font size.
|
static Font |
Font.font(java.lang.String family,
double size)
Searches for an appropriate font based on the font family name and size.
|
static Font |
Font.font(java.lang.String family,
FontPosture posture,
double size)
Searches for an appropriate font based on the font family name and posture
style.
|
static Font |
Font.font(java.lang.String family,
FontWeight weight,
double size)
Searches for an appropriate font based on the font family name and weight
style.
|
static Font |
Font.font(java.lang.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() |
static Font |
Font.impl_NativeFont(java.lang.Object f,
java.lang.String name,
java.lang.String family,
java.lang.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(java.io.InputStream in,
double size)
Loads a font resource from the specified input stream.
|
static Font |
Font.loadFont(java.lang.String urlStr,
double size)
Loads a font resource from the specified URL.
|
Modifier and Type | Method and Description |
---|---|
ObjectProperty<Font> |
Text.fontProperty() |
Modifier and Type | Method and Description |
---|---|
B |
TextBuilder.font(Font x)
Deprecated.
Set the value of the
font property for the instance constructed by this builder. |
void |
Text.setFont(Font value) |