Uses of Class
javafx.scene.paint.Paint
Packages that use 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
Methods in javafx.css that return types with arguments of type PaintModifier 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
.Methods in javafx.css with parameters of type PaintModifier 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.Method parameters in javafx.css with type arguments of type PaintModifier 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
Methods in javafx.css.converter that return types with arguments of type PaintModifier 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
Methods in javafx.scene that return PaintModifier 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.Methods in javafx.scene that return types with arguments of type PaintModifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> Scene.fillProperty()
Defines the background fill of thisScene
.final ObjectProperty
<Paint> SubScene.fillProperty()
Defines the background fill of thisSubScene
.Methods in javafx.scene with parameters of type PaintModifier 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.Constructors in javafx.scene with parameters of type Paint -
Uses of Paint in javafx.scene.canvas
Methods in javafx.scene.canvas that return PaintModifier and TypeMethodDescriptionGraphicsContext.getFill()
Gets the current fill paint attribute.GraphicsContext.getStroke()
Gets the current stroke.Methods in javafx.scene.canvas with parameters of type Paint -
Uses of Paint in javafx.scene.chart
Methods in javafx.scene.chart that return PaintModifier and TypeMethodDescriptionfinal Paint
Axis.getTickLabelFill()
Gets the value of thetickLabelFill
property.Methods in javafx.scene.chart that return types with arguments of type PaintModifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> Axis.tickLabelFillProperty()
The fill for all tick labelsMethods in javafx.scene.chart with parameters of type PaintModifier and TypeMethodDescriptionfinal void
Axis.setTickLabelFill
(Paint value) Sets the value of thetickLabelFill
property. -
Uses of Paint in javafx.scene.control
Methods in javafx.scene.control that return PaintModifier and TypeMethodDescriptionfinal Paint
Labeled.getTextFill()
Gets the value of thetextFill
property.Methods in javafx.scene.control that return types with arguments of type PaintModifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> Labeled.textFillProperty()
ThePaint
used to fill the text.Methods in javafx.scene.control with parameters of type PaintModifier and TypeMethodDescriptionfinal void
Labeled.setTextFill
(Paint value) Sets the value of thetextFill
property. -
Uses of Paint in javafx.scene.control.skin
Methods in javafx.scene.control.skin that return PaintModifier 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.Methods in javafx.scene.control.skin that return types with arguments of type PaintModifier 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 conditionsMethods in javafx.scene.control.skin with parameters of type PaintModifier 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
Methods in javafx.scene.effect that return PaintModifier and TypeMethodDescriptionfinal Paint
ColorInput.getPaint()
Gets the value of thepaint
property.Methods in javafx.scene.effect that return types with arguments of type PaintModifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> ColorInput.paintProperty()
ThePaint
used to flood the region.Methods in javafx.scene.effect with parameters of type PaintModifier and TypeMethodDescriptionfinal void
Sets the value of thepaint
property.Constructors in javafx.scene.effect with parameters of type PaintModifierConstructorDescriptionColorInput
(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
Methods in javafx.scene.layout that return PaintModifier 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.Methods in javafx.scene.layout with parameters of type PaintModifier 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
.Constructors in javafx.scene.layout with parameters of type PaintModifierConstructorDescriptionBackgroundFill
(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
Subclasses of Paint in javafx.scene.paintModifier 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.Methods in javafx.scene.paint that return Paint -
Uses of Paint in javafx.scene.shape
Methods in javafx.scene.shape that return PaintModifier and TypeMethodDescriptionfinal Paint
Shape.getFill()
Gets the value of thefill
property.final Paint
Shape.getStroke()
Gets the value of thestroke
property.Methods in javafx.scene.shape that return types with arguments of type PaintModifier 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
.Methods in javafx.scene.shape with parameters of type PaintModifier and TypeMethodDescriptionfinal void
Sets the value of thefill
property.final void
Sets the value of thestroke
property.Constructors in javafx.scene.shape with parameters of type PaintModifierConstructorDescriptionCreates 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
Methods in javafx.scene.text that return PaintModifier and TypeMethodDescriptionfinal Paint
Text.getSelectionFill()
Gets the value of theselectionFill
property.Methods in javafx.scene.text that return types with arguments of type PaintModifier and TypeMethodDescriptionfinal ObjectProperty
<Paint> Text.selectionFillProperty()
The fill color of selected text.Methods in javafx.scene.text with parameters of type PaintModifier and TypeMethodDescriptionfinal void
Text.setSelectionFill
(Paint paint) Sets the value of theselectionFill
property.