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 aStyleConverterthat converts a parsed representation of aPaintto aPaint.static StyleConverter<ParsedValue<?, Paint>, Paint> StyleConverter.getPaintConverter()Return aStyleConverterthat converts a parsed representation of aPaintto 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 thePaintConverterinstance.static StyleConverter<ParsedValue<?, Paint>, Paint> PaintConverter.getInstance()Gets thePaintConverterinstance. -
Uses of Paint in javafx.scene
Methods in javafx.scene that return PaintModifier and TypeMethodDescriptionfinal PaintScene.getFill()Gets the value of thefillproperty.SnapshotParameters.getFill()Gets the current fill.final PaintSubScene.getFill()Gets the value of thefillproperty.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 voidSets the value of thefillproperty.voidSets the fill to the specified value.final voidSets the value of thefillproperty.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 PaintAxis.getTickLabelFill()Gets the value of thetickLabelFillproperty.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 voidAxis.setTickLabelFill(Paint value) Sets the value of thetickLabelFillproperty. -
Uses of Paint in javafx.scene.control
Methods in javafx.scene.control that return PaintModifier and TypeMethodDescriptionfinal PaintLabeled.getTextFill()Gets the value of thetextFillproperty.Methods in javafx.scene.control that return types with arguments of type PaintModifier and TypeMethodDescriptionfinal ObjectProperty<Paint> Labeled.textFillProperty()ThePaintused to fill the text.Methods in javafx.scene.control with parameters of type PaintModifier and TypeMethodDescriptionfinal voidLabeled.setTextFill(Paint value) Sets the value of thetextFillproperty. -
Uses of Paint in javafx.scene.control.skin
Methods in javafx.scene.control.skin that return PaintModifier and TypeMethodDescriptionprotected final PaintTextInputControlSkin.getHighlightFill()Gets the value of thehighlightFillproperty.protected final PaintTextInputControlSkin.getHighlightTextFill()Gets the value of thehighlightTextFillproperty.protected final PaintTextInputControlSkin.getPromptTextFill()Gets the value of thepromptTextFillproperty.protected final PaintTextInputControlSkin.getTextFill()Gets the value of thetextFillproperty.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 fillPaintused for the foreground of selected text.protected final ObjectProperty<Paint> TextInputControlSkin.promptTextFillProperty()The fillPaintused 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 voidTextInputControlSkin.setHighlightFill(Paint value) The fillPaintused for the background of selected text.protected final voidTextInputControlSkin.setHighlightTextFill(Paint value) The fillPaintused for the foreground of selected text.protected final voidTextInputControlSkin.setPromptTextFill(Paint value) The fillPaintused for the foreground prompt text color.protected final voidTextInputControlSkin.setTextFill(Paint value) The fillPaintused for the foreground text color. -
Uses of Paint in javafx.scene.effect
Methods in javafx.scene.effect that return PaintModifier and TypeMethodDescriptionfinal PaintColorInput.getPaint()Gets the value of thepaintproperty.Methods in javafx.scene.effect that return types with arguments of type PaintModifier and TypeMethodDescriptionfinal ObjectProperty<Paint> ColorInput.paintProperty()ThePaintused to flood the region.Methods in javafx.scene.effect with parameters of type PaintModifier and TypeMethodDescriptionfinal voidSets the value of thepaintproperty.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 PaintBorderStroke.getBottomStroke()Defines the fill of bottom side of this border.final PaintBackgroundFill.getFill()The Paint to use for filling the background of theRegion.final PaintBorderStroke.getLeftStroke()Defines the fill of left side of this border.final PaintBorderStroke.getRightStroke()Defines the fill of right side of this border.final PaintBorderStroke.getTopStroke()Defines the fill of top side of this border.Methods in javafx.scene.layout with parameters of type PaintModifier and TypeMethodDescriptionstatic BackgroundA convenience factory method for creating aBackgroundwith a singlePaint.static BorderA convenience factory method for creating a solidBorderwith 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 classThe Color class is used to encapsulate colors in the default sRGB color space.final classTheImagePatternclass fills a shape with an image pattern.final classTheLinearGradientclass fills a shape with a linear color gradient pattern.final classTheRadialGradientclass 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 PaintShape.getFill()Gets the value of thefillproperty.final PaintShape.getStroke()Gets the value of thestrokeproperty.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 anShapeusing the settings of thePaintcontext.final ObjectProperty<Paint> Shape.strokeProperty()Defines parameters of a stroke that is drawn around the outline of aShapeusing the settings of the specifiedPaint.Methods in javafx.scene.shape with parameters of type PaintModifier and TypeMethodDescriptionfinal voidSets the value of thefillproperty.final voidSets the value of thestrokeproperty.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 PaintText.getSelectionFill()Gets the value of theselectionFillproperty.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 voidText.setSelectionFill(Paint paint) Sets the value of theselectionFillproperty.