Uses of Class
javafx.scene.paint.Color
Packages that use Color
Package
Description
Provides the set of classes for ease of use transition based animations.
Provides the application life-cycle classes.
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.
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 the set of classes for loading and displaying images.
Provides the set of classes for colors and gradients used to fill shapes and
backgrounds when rendering the scene graph.
Provides API for simulating user interaction such as typing keys on the keyboard and using the mouse.
This package provides means for loading and displaying Web content.
Provides common models for
RichTextArea and
CodeArea controls.-
Uses of Color in javafx.animation
Methods in javafx.animation that return ColorModifier and TypeMethodDescriptionfinal ColorFillTransition.getFromValue()Gets the value of thefromValueproperty.final ColorStrokeTransition.getFromValue()Gets the value of thefromValueproperty.final ColorFillTransition.getToValue()Gets the value of thetoValueproperty.final ColorStrokeTransition.getToValue()Gets the value of thetoValueproperty.Methods in javafx.animation that return types with arguments of type ColorModifier and TypeMethodDescriptionfinal ObjectProperty<Color> FillTransition.fromValueProperty()Specifies the start color value for thisFillTransition.final ObjectProperty<Color> StrokeTransition.fromValueProperty()Specifies the start color value for thisStrokeTransition.final ObjectProperty<Color> FillTransition.toValueProperty()Specifies the stop color value for thisFillTransition.final ObjectProperty<Color> StrokeTransition.toValueProperty()Specifies the stop color value for thisStrokeTransition.Methods in javafx.animation with parameters of type ColorModifier and TypeMethodDescriptionfinal voidFillTransition.setFromValue(Color value) Sets the value of thefromValueproperty.final voidStrokeTransition.setFromValue(Color value) Sets the value of thefromValueproperty.final voidFillTransition.setToValue(Color value) Sets the value of thetoValueproperty.final voidStrokeTransition.setToValue(Color value) Sets the value of thetoValueproperty.Constructors in javafx.animation with parameters of type ColorModifierConstructorDescriptionFillTransition(Duration duration, Color fromValue, Color toValue) The constructor ofFillTransitionFillTransition(Duration duration, Shape shape, Color fromValue, Color toValue) The constructor ofFillTransitionStrokeTransition(Duration duration, Color fromValue, Color toValue) The constructor ofStrokeTransitionStrokeTransition(Duration duration, Shape shape, Color fromValue, Color toValue) The constructor ofStrokeTransition -
Uses of Color in javafx.application
Methods in javafx.application that return ColorModifier and TypeMethodDescriptionPlatform.Preferences.getAccentColor()Gets the value of theaccentColorproperty.Platform.Preferences.getBackgroundColor()Gets the value of thebackgroundColorproperty.Platform.Preferences.getForegroundColor()Gets the value of theforegroundColorproperty.Methods in javafx.application that return types with arguments of type ColorModifier and TypeMethodDescriptionPlatform.Preferences.accentColorProperty()The accent color, which can be used to highlight the active or important part of a control and make it stand out from the rest of the user interface.Platform.Preferences.backgroundColorProperty()The color used for background regions.Platform.Preferences.foregroundColorProperty()The color used for foreground elements like text.Returns an optionalColorto which the specified key is mapped. -
Uses of Color in javafx.css
Methods in javafx.css that return types with arguments of type ColorModifier and TypeMethodDescriptionfinal CssMetaData<S, Color> StyleablePropertyFactory.createColorCssMetaData(String property, Function<S, StyleableProperty<Color>> function) Create a CssMetaData<S, Color> with initial value of Color.BLACK, and inherit flag defaulting to false.final CssMetaData<S, Color> StyleablePropertyFactory.createColorCssMetaData(String property, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a CssMetaData<S, Color> with initial value, and inherit flag defaulting to false.final CssMetaData<S, Color> StyleablePropertyFactory.createColorCssMetaData(String property, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a CssMetaData<S, Color> with initial value, and inherit flag.final StyleableProperty<Color> StyleablePropertyFactory.createStyleableColorProperty(S styleable, String propertyName, String cssProperty) Create a StyleableProperty<Color> using previously created CssMetaData for the givencssProperty.final StyleableProperty<Color> StyleablePropertyFactory.createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function) Create a StyleableProperty<Color>.final StyleableProperty<Color> StyleablePropertyFactory.createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a StyleableProperty<Color> with initial value.final StyleableProperty<Color> StyleablePropertyFactory.createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a StyleableProperty<Color> with initial value and inherit flag.static StyleConverter<String, Color> StyleConverter.getColorConverter()Return aStyleConverterthat converts a String representation of a web color to aColor.Methods in javafx.css with parameters of type ColorModifier and TypeMethodDescriptionfinal CssMetaData<S, Color> StyleablePropertyFactory.createColorCssMetaData(String property, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a CssMetaData<S, Color> with initial value, and inherit flag defaulting to false.final CssMetaData<S, Color> StyleablePropertyFactory.createColorCssMetaData(String property, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a CssMetaData<S, Color> with initial value, and inherit flag.final StyleableProperty<Color> StyleablePropertyFactory.createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a StyleableProperty<Color> with initial value.final StyleableProperty<Color> StyleablePropertyFactory.createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a StyleableProperty<Color> with initial value and inherit flag.Method parameters in javafx.css with type arguments of type ColorModifier and TypeMethodDescriptionfinal CssMetaData<S, Color> StyleablePropertyFactory.createColorCssMetaData(String property, Function<S, StyleableProperty<Color>> function) Create a CssMetaData<S, Color> with initial value of Color.BLACK, and inherit flag defaulting to false.final CssMetaData<S, Color> StyleablePropertyFactory.createColorCssMetaData(String property, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a CssMetaData<S, Color> with initial value, and inherit flag defaulting to false.final CssMetaData<S, Color> StyleablePropertyFactory.createColorCssMetaData(String property, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a CssMetaData<S, Color> with initial value, and inherit flag.final StyleableProperty<Color> StyleablePropertyFactory.createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function) Create a StyleableProperty<Color>.final StyleableProperty<Color> StyleablePropertyFactory.createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue) Create a StyleableProperty<Color> with initial value.final StyleableProperty<Color> StyleablePropertyFactory.createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S, StyleableProperty<Color>> function, Color initialValue, boolean inherits) Create a StyleableProperty<Color> with initial value and inherit flag. -
Uses of Color in javafx.css.converter
Subclasses with type arguments of type Color in javafx.css.converterModifier and TypeClassDescriptionfinal classConverter to convert aStringto aColor.final classConverter to convert a combination of color and brightness values to a derivedColor.final classConverter to convert a parsed representation of color ladder values to aColor.Methods in javafx.css.converter that return types with arguments of type ColorModifier and TypeMethodDescriptionstatic StyleConverter<String, Color> ColorConverter.getInstance()Gets theColorConverterinstance. -
Uses of Color in javafx.scene
Methods in javafx.scene that return ColorModifier and TypeMethodDescriptionfinal ColorLightBase.getColor()Gets the value of thecolorproperty.Methods in javafx.scene that return types with arguments of type ColorModifier and TypeMethodDescriptionfinal ObjectProperty<Color> LightBase.colorProperty()Specifies the color of light source.Methods in javafx.scene with parameters of type ColorModifier and TypeMethodDescriptionfinal voidSets the value of thecolorproperty.Constructors in javafx.scene with parameters of type ColorModifierConstructorDescriptionAmbientLight(Color color) Creates a new instance ofAmbientLightclass using the specified color.DirectionalLight(Color color) Creates a newDirectionalLightwith the specified color.protectedCreates a new instance ofLightBaseclass using the specified color.PointLight(Color color) Creates a new instance ofPointLightclass using the specified color.Creates a new instance ofSpotLightclass using the specified color. -
Uses of Color in javafx.scene.control
Subclasses with type arguments of type Color in javafx.scene.controlModifier and TypeClassDescriptionclassColorPicker control allows the user to select a color from either a standard palette of colors with a simple one click selection OR define their own custom color.Methods in javafx.scene.control that return types with arguments of type ColorModifier and TypeMethodDescriptionfinal ObservableList<Color> ColorPicker.getCustomColors()Gets the list of custom colors added to the Color Palette by the user.Constructors in javafx.scene.control with parameters of type ColorModifierConstructorDescriptionColorPicker(Color color) Creates a ColorPicker instance and sets the selected color to the given color. -
Uses of Color in javafx.scene.control.skin
Subclasses with type arguments of type Color in javafx.scene.control.skinMethods in javafx.scene.control.skin that return types with arguments of type ColorModifier and TypeMethodDescriptionprotected StringConverter<Color> ColorPickerSkin.getConverter()Subclasses are responsible for getting the converter. -
Uses of Color in javafx.scene.effect
Methods in javafx.scene.effect that return ColorModifier and TypeMethodDescriptionfinal ColorDropShadow.getColor()Gets the value of thecolorproperty.final ColorInnerShadow.getColor()Gets the value of thecolorproperty.final ColorLight.getColor()Gets the value of thecolorproperty.final ColorShadow.getColor()Gets the value of thecolorproperty.Methods in javafx.scene.effect that return types with arguments of type ColorModifier and TypeMethodDescriptionfinal ObjectProperty<Color> DropShadow.colorProperty()The shadowColor.final ObjectProperty<Color> InnerShadow.colorProperty()The shadowColor.final ObjectProperty<Color> Light.colorProperty()The color of the light source.final ObjectProperty<Color> Shadow.colorProperty()The shadowColor.Methods in javafx.scene.effect with parameters of type ColorModifier and TypeMethodDescriptionfinal voidSets the value of thecolorproperty.final voidSets the value of thecolorproperty.final voidSets the value of thecolorproperty.final voidSets the value of thecolorproperty.Constructors in javafx.scene.effect with parameters of type ColorModifierConstructorDescriptionCreates a new instance of Distant light with the specified azimuth, elevation, and color.DropShadow(double radius, double offsetX, double offsetY, Color color) Creates a new instance of DropShadow with the specified radius, offsetX, offsetY and color.DropShadow(double radius, Color color) Creates a new instance of DropShadow with specified radius and color.DropShadow(BlurType blurType, Color color, double radius, double spread, double offsetX, double offsetY) Creates a new instance of DropShadow with the specified blurType, color, radius, spread, offsetX and offsetY.InnerShadow(double radius, double offsetX, double offsetY, Color color) Creates a new instance of InnerShadow with specified radius, offsetX, offsetY and color.InnerShadow(double radius, Color color) Creates a new instance of InnerShadow with specified radius and color.InnerShadow(BlurType blurType, Color color, double radius, double choke, double offsetX, double offsetY) Creates a new instance of InnerShadow with the specified blurType, color, radius, spread, offsetX and offsetY.Creates a new instance of Point light with the specified x, y, x, and color.Creates a new instance of Shadow with specified radius and color.Creates a new instance of Shadow with the specified blurType, color, radius.Creates a new instance of Spot light with the specified x, y, z, specularExponent, and color. -
Uses of Color in javafx.scene.image
Methods in javafx.scene.image that return ColorModifier and TypeMethodDescriptionPixelReader.getColor(int x, int y) Reads the color of a pixel from the specified coordinates in the surface and returns the value as aColorobject.Methods in javafx.scene.image with parameters of type Color -
Uses of Color in javafx.scene.paint
Fields in javafx.scene.paint declared as ColorModifier and TypeFieldDescriptionstatic final ColorColor.ALICEBLUEThe color alice blue with an RGB value of #F0F8FFstatic final ColorColor.ANTIQUEWHITEThe color antique white with an RGB value of #FAEBD7static final ColorColor.AQUAThe color aqua with an RGB value of #00FFFFstatic final ColorColor.AQUAMARINEThe color aquamarine with an RGB value of #7FFFD4static final ColorColor.AZUREThe color azure with an RGB value of #F0FFFFstatic final ColorColor.BEIGEThe color beige with an RGB value of #F5F5DCstatic final ColorColor.BISQUEThe color bisque with an RGB value of #FFE4C4static final ColorColor.BLACKThe color black with an RGB value of #000000static final ColorColor.BLANCHEDALMONDThe color blanched almond with an RGB value of #FFEBCDstatic final ColorColor.BLUEThe color blue with an RGB value of #0000FFstatic final ColorColor.BLUEVIOLETThe color blue violet with an RGB value of #8A2BE2static final ColorColor.BROWNThe color brown with an RGB value of #A52A2Astatic final ColorColor.BURLYWOODThe color burly wood with an RGB value of #DEB887static final ColorColor.CADETBLUEThe color cadet blue with an RGB value of #5F9EA0static final ColorColor.CHARTREUSEThe color chartreuse with an RGB value of #7FFF00static final ColorColor.CHOCOLATEThe color chocolate with an RGB value of #D2691Estatic final ColorColor.CORALThe color coral with an RGB value of #FF7F50static final ColorColor.CORNFLOWERBLUEThe color cornflower blue with an RGB value of #6495EDstatic final ColorColor.CORNSILKThe color cornsilk with an RGB value of #FFF8DCstatic final ColorColor.CRIMSONThe color crimson with an RGB value of #DC143Cstatic final ColorColor.CYANThe color cyan with an RGB value of #00FFFFstatic final ColorColor.DARKBLUEThe color dark blue with an RGB value of #00008Bstatic final ColorColor.DARKCYANThe color dark cyan with an RGB value of #008B8Bstatic final ColorColor.DARKGOLDENRODThe color dark goldenrod with an RGB value of #B8860Bstatic final ColorColor.DARKGRAYThe color dark gray with an RGB value of #A9A9A9static final ColorColor.DARKGREENThe color dark green with an RGB value of #006400static final ColorColor.DARKGREYThe color dark grey with an RGB value of #A9A9A9static final ColorColor.DARKKHAKIThe color dark khaki with an RGB value of #BDB76Bstatic final ColorColor.DARKMAGENTAThe color dark magenta with an RGB value of #8B008Bstatic final ColorColor.DARKOLIVEGREENThe color dark olive green with an RGB value of #556B2Fstatic final ColorColor.DARKORANGEThe color dark orange with an RGB value of #FF8C00static final ColorColor.DARKORCHIDThe color dark orchid with an RGB value of #9932CCstatic final ColorColor.DARKREDThe color dark red with an RGB value of #8B0000static final ColorColor.DARKSALMONThe color dark salmon with an RGB value of #E9967Astatic final ColorColor.DARKSEAGREENThe color dark sea green with an RGB value of #8FBC8Fstatic final ColorColor.DARKSLATEBLUEThe color dark slate blue with an RGB value of #483D8Bstatic final ColorColor.DARKSLATEGRAYThe color dark slate gray with an RGB value of #2F4F4Fstatic final ColorColor.DARKSLATEGREYThe color dark slate grey with an RGB value of #2F4F4Fstatic final ColorColor.DARKTURQUOISEThe color dark turquoise with an RGB value of #00CED1static final ColorColor.DARKVIOLETThe color dark violet with an RGB value of #9400D3static final ColorColor.DEEPPINKThe color deep pink with an RGB value of #FF1493static final ColorColor.DEEPSKYBLUEThe color deep sky blue with an RGB value of #00BFFFstatic final ColorColor.DIMGRAYThe color dim gray with an RGB value of #696969static final ColorColor.DIMGREYThe color dim grey with an RGB value of #696969static final ColorColor.DODGERBLUEThe color dodger blue with an RGB value of #1E90FFstatic final ColorColor.FIREBRICKThe color firebrick with an RGB value of #B22222static final ColorColor.FLORALWHITEThe color floral white with an RGB value of #FFFAF0static final ColorColor.FORESTGREENThe color forest green with an RGB value of #228B22static final ColorColor.FUCHSIAThe color fuchsia with an RGB value of #FF00FFstatic final ColorColor.GAINSBOROThe color gainsboro with an RGB value of #DCDCDCstatic final ColorColor.GHOSTWHITEThe color ghost white with an RGB value of #F8F8FFstatic final ColorColor.GOLDThe color gold with an RGB value of #FFD700static final ColorColor.GOLDENRODThe color goldenrod with an RGB value of #DAA520static final ColorColor.GRAYThe color gray with an RGB value of #808080static final ColorColor.GREENThe color green with an RGB value of #008000static final ColorColor.GREENYELLOWThe color green yellow with an RGB value of #ADFF2Fstatic final ColorColor.GREYThe color grey with an RGB value of #808080static final ColorColor.HONEYDEWThe color honeydew with an RGB value of #F0FFF0static final ColorColor.HOTPINKThe color hot pink with an RGB value of #FF69B4static final ColorColor.INDIANREDThe color indian red with an RGB value of #CD5C5Cstatic final ColorColor.INDIGOThe color indigo with an RGB value of #4B0082static final ColorColor.IVORYThe color ivory with an RGB value of #FFFFF0static final ColorColor.KHAKIThe color khaki with an RGB value of #F0E68Cstatic final ColorColor.LAVENDERThe color lavender with an RGB value of #E6E6FAstatic final ColorColor.LAVENDERBLUSHThe color lavender blush with an RGB value of #FFF0F5static final ColorColor.LAWNGREENThe color lawn green with an RGB value of #7CFC00static final ColorColor.LEMONCHIFFONThe color lemon chiffon with an RGB value of #FFFACDstatic final ColorColor.LIGHTBLUEThe color light blue with an RGB value of #ADD8E6static final ColorColor.LIGHTCORALThe color light coral with an RGB value of #F08080static final ColorColor.LIGHTCYANThe color light cyan with an RGB value of #E0FFFFstatic final ColorColor.LIGHTGOLDENRODYELLOWThe color light goldenrod yellow with an RGB value of #FAFAD2static final ColorColor.LIGHTGRAYThe color light gray with an RGB value of #D3D3D3static final ColorColor.LIGHTGREENThe color light green with an RGB value of #90EE90static final ColorColor.LIGHTGREYThe color light grey with an RGB value of #D3D3D3static final ColorColor.LIGHTPINKThe color light pink with an RGB value of #FFB6C1static final ColorColor.LIGHTSALMONThe color light salmon with an RGB value of #FFA07Astatic final ColorColor.LIGHTSEAGREENThe color light sea green with an RGB value of #20B2AAstatic final ColorColor.LIGHTSKYBLUEThe color light sky blue with an RGB value of #87CEFAstatic final ColorColor.LIGHTSLATEGRAYThe color light slate gray with an RGB value of #778899static final ColorColor.LIGHTSLATEGREYThe color light slate grey with an RGB value of #778899static final ColorColor.LIGHTSTEELBLUEThe color light steel blue with an RGB value of #B0C4DEstatic final ColorColor.LIGHTYELLOWThe color light yellow with an RGB value of #FFFFE0static final ColorColor.LIMEThe color lime with an RGB value of #00FF00static final ColorColor.LIMEGREENThe color lime green with an RGB value of #32CD32static final ColorColor.LINENThe color linen with an RGB value of #FAF0E6static final ColorColor.MAGENTAThe color magenta with an RGB value of #FF00FFstatic final ColorColor.MAROONThe color maroon with an RGB value of #800000static final ColorColor.MEDIUMAQUAMARINEThe color medium aquamarine with an RGB value of #66CDAAstatic final ColorColor.MEDIUMBLUEThe color medium blue with an RGB value of #0000CDstatic final ColorColor.MEDIUMORCHIDThe color medium orchid with an RGB value of #BA55D3static final ColorColor.MEDIUMPURPLEThe color medium purple with an RGB value of #9370DBstatic final ColorColor.MEDIUMSEAGREENThe color medium sea green with an RGB value of #3CB371static final ColorColor.MEDIUMSLATEBLUEThe color medium slate blue with an RGB value of #7B68EEstatic final ColorColor.MEDIUMSPRINGGREENThe color medium spring green with an RGB value of #00FA9Astatic final ColorColor.MEDIUMTURQUOISEThe color medium turquoise with an RGB value of #48D1CCstatic final ColorColor.MEDIUMVIOLETREDThe color medium violet red with an RGB value of #C71585static final ColorColor.MIDNIGHTBLUEThe color midnight blue with an RGB value of #191970static final ColorColor.MINTCREAMThe color mint cream with an RGB value of #F5FFFAstatic final ColorColor.MISTYROSEThe color misty rose with an RGB value of #FFE4E1static final ColorColor.MOCCASINThe color moccasin with an RGB value of #FFE4B5static final ColorColor.NAVAJOWHITEThe color navajo white with an RGB value of #FFDEADstatic final ColorColor.NAVYThe color navy with an RGB value of #000080static final ColorColor.OLDLACEThe color old lace with an RGB value of #FDF5E6static final ColorColor.OLIVEThe color olive with an RGB value of #808000static final ColorColor.OLIVEDRABThe color olive drab with an RGB value of #6B8E23static final ColorColor.ORANGEThe color orange with an RGB value of #FFA500static final ColorColor.ORANGEREDThe color orange red with an RGB value of #FF4500static final ColorColor.ORCHIDThe color orchid with an RGB value of #DA70D6static final ColorColor.PALEGOLDENRODThe color pale goldenrod with an RGB value of #EEE8AAstatic final ColorColor.PALEGREENThe color pale green with an RGB value of #98FB98static final ColorColor.PALETURQUOISEThe color pale turquoise with an RGB value of #AFEEEEstatic final ColorColor.PALEVIOLETREDThe color pale violet red with an RGB value of #DB7093static final ColorColor.PAPAYAWHIPThe color papaya whip with an RGB value of #FFEFD5static final ColorColor.PEACHPUFFThe color peach puff with an RGB value of #FFDAB9static final ColorColor.PERUThe color peru with an RGB value of #CD853Fstatic final ColorColor.PINKThe color pink with an RGB value of #FFC0CBstatic final ColorColor.PLUMThe color plum with an RGB value of #DDA0DDstatic final ColorColor.POWDERBLUEThe color powder blue with an RGB value of #B0E0E6static final ColorColor.PURPLEThe color purple with an RGB value of #800080static final ColorColor.REDThe color red with an RGB value of #FF0000static final ColorColor.ROSYBROWNThe color rosy brown with an RGB value of #BC8F8Fstatic final ColorColor.ROYALBLUEThe color royal blue with an RGB value of #4169E1static final ColorColor.SADDLEBROWNThe color saddle brown with an RGB value of #8B4513static final ColorColor.SALMONThe color salmon with an RGB value of #FA8072static final ColorColor.SANDYBROWNThe color sandy brown with an RGB value of #F4A460static final ColorColor.SEAGREENThe color sea green with an RGB value of #2E8B57static final ColorColor.SEASHELLThe color sea shell with an RGB value of #FFF5EEstatic final ColorColor.SIENNAThe color sienna with an RGB value of #A0522Dstatic final ColorColor.SILVERThe color silver with an RGB value of #C0C0C0static final ColorColor.SKYBLUEThe color sky blue with an RGB value of #87CEEBstatic final ColorColor.SLATEBLUEThe color slate blue with an RGB value of #6A5ACDstatic final ColorColor.SLATEGRAYThe color slate gray with an RGB value of #708090static final ColorColor.SLATEGREYThe color slate grey with an RGB value of #708090static final ColorColor.SNOWThe color snow with an RGB value of #FFFAFAstatic final ColorColor.SPRINGGREENThe color spring green with an RGB value of #00FF7Fstatic final ColorColor.STEELBLUEThe color steel blue with an RGB value of #4682B4static final ColorColor.TANThe color tan with an RGB value of #D2B48Cstatic final ColorColor.TEALThe color teal with an RGB value of #008080static final ColorColor.THISTLEThe color thistle with an RGB value of #D8BFD8static final ColorColor.TOMATOThe color tomato with an RGB value of #FF6347static final ColorColor.TRANSPARENTA fully transparent color with an ARGB value of #00000000.static final ColorColor.TURQUOISEThe color turquoise with an RGB value of #40E0D0static final ColorColor.VIOLETThe color violet with an RGB value of #EE82EEstatic final ColorColor.WHEATThe color wheat with an RGB value of #F5DEB3static final ColorColor.WHITEThe color white with an RGB value of #FFFFFFstatic final ColorColor.WHITESMOKEThe color white smoke with an RGB value of #F5F5F5static final ColorColor.YELLOWThe color yellow with an RGB value of #FFFF00static final ColorColor.YELLOWGREENThe color yellow green with an RGB value of #9ACD32Methods in javafx.scene.paint that return ColorModifier and TypeMethodDescriptionColor.brighter()Creates a new Color that is a brighter version of this Color.static ColorColor.color(double red, double green, double blue) Creates an opaque sRGB color with the specified red, green and blue values in the range0.0-1.0.static ColorColor.color(double red, double green, double blue, double opacity) Creates an sRGB color with the specified red, green and blue values in the range0.0-1.0, and a given opacity.Color.darker()Creates a new Color that is a darker version of this Color.Color.deriveColor(double hueShift, double saturationFactor, double brightnessFactor, double opacityFactor) Creates a newColorbased on thisColorwith hue, saturation, brightness and opacity values altered.Color.desaturate()Creates a new Color that is a less saturated version of this Color.final ColorStop.getColor()Gets the color of the gradient at this offset.final ColorPhongMaterial.getDiffuseColor()Gets the value of thediffuseColorproperty.final ColorPhongMaterial.getSpecularColor()Gets the value of thespecularColorproperty.static ColorColor.gray(double gray) Creates an opaque grey color.static ColorColor.gray(double gray, double opacity) Creates a grey color.static ColorColor.grayRgb(int gray) This is a shortcut forrgb(gray, gray, gray).static ColorColor.grayRgb(int gray, double opacity) This is a shortcut forrgb(gray, gray, gray, opacity).Color.grayscale()Creates a new Color that is grayscale equivalent of this Color.static ColorColor.hsb(double hue, double saturation, double brightness) Creates an opaqueColorbased on the specified values in the HSB color model.static ColorColor.hsb(double hue, double saturation, double brightness, double opacity) Creates aColorbased on the specified values in the HSB color model, and a given opacity.Color.interpolate(Color endValue, double t) Returns an intermediate value between the value of thisColorand the specifiedendValueusing the linear interpolation factort, ranging from 0 (inclusive) to 1 (inclusive).Color.invert()Creates a new Color that is inversion of this Color.static ColorColor.rgb(int red, int green, int blue) Creates an opaque sRGB color with the specified RGB values in the range0-255.static ColorColor.rgb(int red, int green, int blue, double opacity) Creates an sRGB color with the specified RGB values in the range0-255, and a given opacity.Color.saturate()Creates a new Color that is a more saturated version of this Color.static ColorCreates a color value from a string representation.static ColorCreates an RGB color specified with an HTML or CSS attribute string.static ColorCreates an RGB color specified with an HTML or CSS attribute string.Methods in javafx.scene.paint that return types with arguments of type ColorModifier and TypeMethodDescriptionfinal ObjectProperty<Color> PhongMaterial.diffuseColorProperty()The diffuse color of thisPhongMaterial.final ObjectProperty<Color> PhongMaterial.specularColorProperty()The specular color of thisPhongMaterial.Methods in javafx.scene.paint with parameters of type ColorModifier and TypeMethodDescriptionColor.interpolate(Color endValue, double t) Returns an intermediate value between the value of thisColorand the specifiedendValueusing the linear interpolation factort, ranging from 0 (inclusive) to 1 (inclusive).final voidPhongMaterial.setDiffuseColor(Color value) Sets the value of thediffuseColorproperty.final voidPhongMaterial.setSpecularColor(Color value) Sets the value of thespecularColorproperty.Constructors in javafx.scene.paint with parameters of type ColorModifierConstructorDescriptionPhongMaterial(Color diffuseColor) Creates a new instance ofPhongMaterialclass using the specified color for itsdiffuseColorproperty.PhongMaterial(Color diffuseColor, Image diffuseMap, Image specularMap, Image bumpMap, Image selfIlluminationMap) Creates a new instance ofPhongMaterialclass using the specified colors and images for itsdiffuseColorproperties.Creates a new instance of Stop. -
Uses of Color in javafx.scene.robot
Methods in javafx.scene.robot that return ColorModifier and TypeMethodDescriptionRobot.getPixelColor(double x, double y) Returns theColorof the pixel at the screen coordinates relative to the primary screen specified bylocation.Robot.getPixelColor(Point2D location) Returns theColorof the pixel at the screen coordinates relative to the primary screen specified bylocation. -
Uses of Color in javafx.scene.web
Methods in javafx.scene.web that return ColorModifier and TypeMethodDescriptionfinal ColorWebView.getPageFill()Gets the value of thepageFillproperty.Methods in javafx.scene.web that return types with arguments of type ColorModifier and TypeMethodDescriptionfinal ObjectProperty<Color> WebView.pageFillProperty()Specifies the background color of the web page.Methods in javafx.scene.web with parameters of type ColorModifier and TypeMethodDescriptionfinal voidWebView.setPageFill(Color value) Sets the value of thepageFillproperty. -
Uses of Color in jfx.incubator.scene.control.richtext.model
Fields in jfx.incubator.scene.control.richtext.model with type parameters of type ColorModifier and TypeFieldDescriptionstatic final StyleAttribute<Color> StyleAttributeMap.BACKGROUNDParagraph background color attribute.static final StyleAttribute<Color> StyleAttributeMap.TEXT_COLORText color attribute.Methods in jfx.incubator.scene.control.richtext.model that return ColorModifier and TypeMethodDescriptionStyleAttributeMap.getBackground()This convenience method returns the value ofStyleAttributeMap.BACKGROUNDattribute, or null.StyleAttributeMap.getTextColor()This convenience method returns the value ofStyleAttributeMap.TEXT_COLORattribute, or null.Methods in jfx.incubator.scene.control.richtext.model with parameters of type ColorModifier and TypeMethodDescriptionRichParagraph.Builder.addHighlight(int start, int length, Color color) Adds a color background highlight.RichParagraph.Builder.addWavyUnderline(int start, int length, Color color) Adds a wavy underline (typically used as a spell checker indicator) with the given color.SimpleViewOnlyStyledModel.addWavyUnderline(int start, int length, Color c) Adds a wavy underline (typically used as a spell checker indicator) to the specified range within the last paragraph.Adds a highlight of the given color to the specified range within the last paragraph.StyleAttributeMap.Builder.setBackground(Color color) Sets the paragraph background attribute to the specified color.StyleAttributeMap.Builder.setTextColor(Color color) Sets the text color attribute to the specified color.