Uses of Class
javafx.scene.paint.Paint
Package
Description
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
Provides various
StyleConverter
classes
that convert CSS parsed values.Provides the core set of base
classes for the JavaFX Scene Graph API.
Provides the set of classes for canvas, an immediate mode style of rendering API.
The JavaFX User Interface provides a set of chart components that
are a very convenient way for data visualization.
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.
The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
Provides the set of classes for attaching graphical filter effects to JavaFX Scene Graph Nodes.
Provides classes to support user interface layout.
Provides the set of classes for colors and gradients used to fill shapes and
backgrounds when rendering the scene graph.
Provides the set of 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
Provides the set of classes for fonts and renderable Text Node.
-
Uses of Paint in javafx.css
Modifier and TypeMethodDescriptionfinal CssMetaData
<S, Paint> StyleablePropertyFactory.createPaintCssMetaData
(String property, Function<S, StyleableProperty<Paint>> function) Create a CssMetaData<S, Paint> with initial value of Color.BLACK, and inherit flag defaulting to false.final CssMetaData
<S, Paint> StyleablePropertyFactory.createPaintCssMetaData
(String property, Function<S, StyleableProperty<Paint>> function, Paint initialValue) Create a CssMetaData<S, Paint> with initial value, and inherit flag defaulting to false.final CssMetaData
<S, Paint> StyleablePropertyFactory.createPaintCssMetaData
(String property, Function<S, StyleableProperty<Paint>> function, Paint initialValue, boolean inherits) Create a CssMetaData<S, Paint> with initial value, and inherit flag.final StyleableProperty
<Paint> StyleablePropertyFactory.createStyleablePaintProperty
(S styleable, String propertyName, String cssProperty) Create a StyleableProperty<Paint> using previously created CssMetaData for the givencssProperty
.final StyleableProperty
<Paint> StyleablePropertyFactory.createStyleablePaintProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function) Create a StyleableProperty<Paint>.final StyleableProperty
<Paint> StyleablePropertyFactory.createStyleablePaintProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function, Paint initialValue) Create a StyleableProperty<Paint> with initial value.final StyleableProperty
<Paint> StyleablePropertyFactory.createStyleablePaintProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function, Paint initialValue, boolean inherits) Create a StyleableProperty<Paint> with initial value and inherit flag.static StyleConverter
<ParsedValue<?, Paint>, Paint> StyleConverter.getPaintConverter()
Return aStyleConverter
that converts a parsed representation of aPaint
to aPaint
.static StyleConverter
<ParsedValue<?, Paint>, Paint> StyleConverter.getPaintConverter()
Return aStyleConverter
that converts a parsed representation of aPaint
to aPaint
.Modifier and TypeMethodDescriptionfinal CssMetaData
<S, Paint> StyleablePropertyFactory.createPaintCssMetaData
(String property, Function<S, StyleableProperty<Paint>> function, Paint initialValue) Create a CssMetaData<S, Paint> with initial value, and inherit flag defaulting to false.final CssMetaData
<S, Paint> StyleablePropertyFactory.createPaintCssMetaData
(String property, Function<S, StyleableProperty<Paint>> function, Paint initialValue, boolean inherits) Create a CssMetaData<S, Paint> with initial value, and inherit flag.final StyleableProperty
<Paint> StyleablePropertyFactory.createStyleablePaintProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function, Paint initialValue) Create a StyleableProperty<Paint> with initial value.final StyleableProperty
<Paint> StyleablePropertyFactory.createStyleablePaintProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function, Paint initialValue, boolean inherits) Create a StyleableProperty<Paint> with initial value and inherit flag.Modifier and TypeMethodDescriptionfinal CssMetaData
<S, Paint> StyleablePropertyFactory.createPaintCssMetaData
(String property, Function<S, StyleableProperty<Paint>> function) Create a CssMetaData<S, Paint> with initial value of Color.BLACK, and inherit flag defaulting to false.final CssMetaData
<S, Paint> StyleablePropertyFactory.createPaintCssMetaData
(String property, Function<S, StyleableProperty<Paint>> function, Paint initialValue) Create a CssMetaData<S, Paint> with initial value, and inherit flag defaulting to false.final CssMetaData
<S, Paint> StyleablePropertyFactory.createPaintCssMetaData
(String property, Function<S, StyleableProperty<Paint>> function, Paint initialValue, boolean inherits) Create a CssMetaData<S, Paint> with initial value, and inherit flag.final StyleableProperty
<Paint> StyleablePropertyFactory.createStyleablePaintProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function) Create a StyleableProperty<Paint>.final StyleableProperty
<Paint> StyleablePropertyFactory.createStyleablePaintProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function, Paint initialValue) Create a StyleableProperty<Paint> with initial value.final StyleableProperty
<Paint> StyleablePropertyFactory.createStyleablePaintProperty
(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Paint>> function, Paint initialValue, boolean inherits) Create a StyleableProperty<Paint> with initial value and inherit flag. -
Uses of Paint in javafx.css.converter
Modifier and TypeMethodDescriptionstatic StyleConverter
<ParsedValue<?, Paint>, Paint> PaintConverter.getInstance()
Gets thePaintConverter
instance.static StyleConverter
<ParsedValue<?, Paint>, Paint> PaintConverter.getInstance()
Gets thePaintConverter
instance. -
Uses of Paint in javafx.scene
Modifier and TypeMethodDescriptionfinal Paint
Scene.getFill()
Gets the value of thefill
property.SnapshotParameters.getFill()
Gets the current fill.final Paint
SubScene.getFill()
Gets the value of thefill
property.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> Scene.fillProperty()
Defines the background fill of thisScene
.final ObjectProperty
<Paint> SubScene.fillProperty()
Defines the background fill of thisSubScene
.Modifier and TypeMethodDescriptionfinal void
Sets the value of thefill
property.void
Sets the fill to the specified value.final void
Sets the value of thefill
property. -
Uses of Paint in javafx.scene.canvas
-
Uses of Paint in javafx.scene.chart
Modifier and TypeMethodDescriptionfinal Paint
Axis.getTickLabelFill()
Gets the value of thetickLabelFill
property.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> Axis.tickLabelFillProperty()
The fill for all tick labelsModifier and TypeMethodDescriptionfinal void
Axis.setTickLabelFill
(Paint value) Sets the value of thetickLabelFill
property. -
Uses of Paint in javafx.scene.control
Modifier and TypeMethodDescriptionfinal Paint
Labeled.getTextFill()
Gets the value of thetextFill
property.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> Labeled.textFillProperty()
ThePaint
used to fill the text.Modifier and TypeMethodDescriptionfinal void
Labeled.setTextFill
(Paint value) Sets the value of thetextFill
property. -
Uses of Paint in javafx.scene.control.skin
Modifier and TypeMethodDescriptionprotected final Paint
TextInputControlSkin.getHighlightFill()
Gets the value of thehighlightFill
property.protected final Paint
TextInputControlSkin.getHighlightTextFill()
Gets the value of thehighlightTextFill
property.protected final Paint
TextInputControlSkin.getPromptTextFill()
Gets the value of thepromptTextFill
property.protected final Paint
TextInputControlSkin.getTextFill()
Gets the value of thetextFill
property.Modifier and TypeMethodDescriptionprotected final ObjectProperty
<Paint> TextInputControlSkin.highlightFillProperty()
The fill to use for the text when highlighted.protected final ObjectProperty
<Paint> TextInputControlSkin.highlightTextFillProperty()
The fillPaint
used for the foreground of selected text.protected final ObjectProperty
<Paint> TextInputControlSkin.promptTextFillProperty()
The fillPaint
used for the foreground of prompt text.protected final ObjectProperty
<Paint> TextInputControlSkin.textFillProperty()
The fill to use for the text under normal conditionsModifier and TypeMethodDescriptionprotected final void
TextInputControlSkin.setHighlightFill
(Paint value) The fillPaint
used for the background of selected text.protected final void
TextInputControlSkin.setHighlightTextFill
(Paint value) The fillPaint
used for the foreground of selected text.protected final void
TextInputControlSkin.setPromptTextFill
(Paint value) The fillPaint
used for the foreground prompt text color.protected final void
TextInputControlSkin.setTextFill
(Paint value) The fillPaint
used for the foreground text color. -
Uses of Paint in javafx.scene.effect
Modifier and TypeMethodDescriptionfinal Paint
ColorInput.getPaint()
Gets the value of thepaint
property.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> ColorInput.paintProperty()
ThePaint
used to flood the region.Modifier and TypeMethodDescriptionfinal void
Sets the value of thepaint
property.ModifierConstructorDescriptionColorInput
(double x, double y, double width, double height, Paint paint) Creates a new instance of ColorInput with the specified x, y, width, height, and paint. -
Uses of Paint in javafx.scene.layout
Modifier and TypeMethodDescriptionfinal Paint
BorderStroke.getBottomStroke()
Defines the fill of bottom side of this border.final Paint
BackgroundFill.getFill()
The Paint to use for filling the background of theRegion
.final Paint
BorderStroke.getLeftStroke()
Defines the fill of left side of this border.final Paint
BorderStroke.getRightStroke()
Defines the fill of right side of this border.final Paint
BorderStroke.getTopStroke()
Defines the fill of top side of this border.Modifier and TypeMethodDescriptionstatic Background
A convenience factory method for creating aBackground
with a singlePaint
.static Border
A convenience factory method for creating a solidBorder
with a singlePaint
.ModifierConstructorDescriptionBackgroundFill
(Paint fill, CornerRadii radii, Insets insets) Creates a new BackgroundFill with the specified fill, radii, and insets.BorderStroke
(Paint stroke, BorderStrokeStyle style, CornerRadii radii, BorderWidths widths) Creates a newBorderStroke
.BorderStroke
(Paint stroke, BorderStrokeStyle style, CornerRadii radii, BorderWidths widths, Insets insets) Creates a newBorderStroke
.BorderStroke
(Paint topStroke, Paint rightStroke, Paint bottomStroke, Paint leftStroke, BorderStrokeStyle topStyle, BorderStrokeStyle rightStyle, BorderStrokeStyle bottomStyle, BorderStrokeStyle leftStyle, CornerRadii radii, BorderWidths widths, Insets insets) Creates a newBorderStroke
, specifying all construction parameters. -
Uses of Paint in javafx.scene.paint
Modifier and TypeClassDescriptionfinal class
The Color class is used to encapsulate colors in the default sRGB color space.final class
TheImagePattern
class fills a shape with an image pattern.final class
TheLinearGradient
class fills a shape with a linear color gradient pattern.final class
TheRadialGradient
class provides a way to fill a shape with a circular radial color gradient pattern. -
Uses of Paint in javafx.scene.shape
Modifier and TypeMethodDescriptionfinal Paint
Shape.getFill()
Gets the value of thefill
property.final Paint
Shape.getStroke()
Gets the value of thestroke
property.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> Shape.fillProperty()
Defines parameters to fill the interior of anShape
using the settings of thePaint
context.final ObjectProperty
<Paint> Shape.strokeProperty()
Defines parameters of a stroke that is drawn around the outline of aShape
using the settings of the specifiedPaint
.Modifier and TypeMethodDescriptionfinal void
Sets the value of thefill
property.final void
Sets the value of thestroke
property.ModifierConstructorDescriptionCreates a new instance of Circle with a specified position, radius and fill.Creates a new instance of Circle with a specified radius and fill.Creates a new instance of Rectangle with the given size and fill. -
Uses of Paint in javafx.scene.text
Modifier and TypeMethodDescriptionfinal Paint
Text.getSelectionFill()
Gets the value of theselectionFill
property.Modifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> Text.selectionFillProperty()
The fill color of selected text.Modifier and TypeMethodDescriptionfinal void
Text.setSelectionFill
(Paint paint) Sets the value of theselectionFill
property.