Uses of Class
javafx.scene.paint.Color
| Package | Description |
|---|---|
| javafx.animation |
Provides the set of classes for ease of use transition based animations.
|
| javafx.css |
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
|
| javafx.css.converter |
Provides various
StyleConverter classes
that convert CSS parsed values. |
| javafx.scene |
Provides the core set of base
classes for the JavaFX Scene Graph API.
|
| 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.control.skin |
The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
|
| javafx.scene.effect |
Provides the set of classes for attaching graphical filter effects to JavaFX Scene Graph Nodes.
|
| javafx.scene.image |
Provides the set of classes for loading and displaying images.
|
| javafx.scene.paint |
Provides the set of classes for colors and gradients used to fill shapes and
backgrounds when rendering the scene graph.
|
| javafx.scene.robot |
Provides API for simulating user interaction such as typing keys on the keyboard and using the mouse.
|
-
Uses of Color in javafx.animation
Methods in javafx.animation that return Color Modifier and Type Method Description ColorFillTransition. getFromValue()Gets the value of the property fromValue.ColorStrokeTransition. getFromValue()Gets the value of the property fromValue.ColorFillTransition. getToValue()Gets the value of the property toValue.ColorStrokeTransition. getToValue()Gets the value of the property toValue.Methods in javafx.animation that return types with arguments of type Color Modifier and Type Method Description ObjectProperty<Color>FillTransition. fromValueProperty()Specifies the start color value for thisFillTransition.ObjectProperty<Color>StrokeTransition. fromValueProperty()Specifies the start color value for thisStrokeTransition.ObjectProperty<Color>FillTransition. toValueProperty()Specifies the stop color value for thisFillTransition.ObjectProperty<Color>StrokeTransition. toValueProperty()Specifies the stop color value for thisStrokeTransition.Methods in javafx.animation with parameters of type Color Modifier and Type Method Description voidFillTransition. setFromValue(Color value)Sets the value of the property fromValue.voidStrokeTransition. setFromValue(Color value)Sets the value of the property fromValue.voidFillTransition. setToValue(Color value)Sets the value of the property toValue.voidStrokeTransition. setToValue(Color value)Sets the value of the property toValue.Constructors in javafx.animation with parameters of type Color Constructor Description FillTransition(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.css
Methods in javafx.css that return types with arguments of type Color Modifier and Type Method Description 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.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.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.StyleableProperty<Color>StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty)Create a StyleableProperty<Color> using previously created CssMetaData for the givencssProperty.StyleableProperty<Color>StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function)Create a StyleableProperty<Color>.StyleableProperty<Color>StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue)Create a StyleableProperty<Color> with initial value.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 Color Modifier and Type Method Description 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.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.StyleableProperty<Color>StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue)Create a StyleableProperty<Color> with initial value.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 Color Modifier and Type Method Description 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.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.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.StyleableProperty<Color>StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function)Create a StyleableProperty<Color>.StyleableProperty<Color>StyleablePropertyFactory. createStyleableColorProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Color>> function, Color initialValue)Create a StyleableProperty<Color> with initial value.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
Methods in javafx.css.converter that return Color Modifier and Type Method Description ColorColorConverter. convert(ParsedValue<String,Color> value, Font font)ColorDeriveColorConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font)ColorLadderConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font)Methods in javafx.css.converter that return types with arguments of type Color Modifier and Type Method Description static StyleConverter<String,Color>ColorConverter. getInstance()Method parameters in javafx.css.converter with type arguments of type Color Modifier and Type Method Description ColorColorConverter. convert(ParsedValue<String,Color> value, Font font)ColorDeriveColorConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font)ColorLadderConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font) -
Uses of Color in javafx.scene
Methods in javafx.scene that return Color Modifier and Type Method Description ColorLightBase. getColor()Gets the value of the property color.Methods in javafx.scene that return types with arguments of type Color Modifier and Type Method Description ObjectProperty<Color>LightBase. colorProperty()Specifies the color of light source.Methods in javafx.scene with parameters of type Color Modifier and Type Method Description voidLightBase. setColor(Color value)Sets the value of the property color.Constructors in javafx.scene with parameters of type Color Constructor Description AmbientLight(Color color)Creates a new instance ofAmbientLightclass using the specified color.LightBase(Color color)Creates a new instance ofLightBaseclass using the specified color.PointLight(Color color)Creates a new instance ofPointLightclass using the specified color. -
Uses of Color in javafx.scene.control
Methods in javafx.scene.control that return types with arguments of type Color Modifier and Type Method Description 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 Color Constructor Description ColorPicker(Color color)Creates a ColorPicker instance and sets the selected color to the given color. -
Uses of Color in javafx.scene.control.skin
Methods in javafx.scene.control.skin that return types with arguments of type Color Modifier and Type Method Description protected 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 Color Modifier and Type Method Description ColorDropShadow. getColor()Gets the value of the property color.ColorInnerShadow. getColor()Gets the value of the property color.ColorLight. getColor()Gets the value of the property color.ColorShadow. getColor()Gets the value of the property color.Methods in javafx.scene.effect that return types with arguments of type Color Modifier and Type Method Description ObjectProperty<Color>DropShadow. colorProperty()The shadowColor.ObjectProperty<Color>InnerShadow. colorProperty()The shadowColor.ObjectProperty<Color>Light. colorProperty()The color of the light source.ObjectProperty<Color>Shadow. colorProperty()The shadowColor.Methods in javafx.scene.effect with parameters of type Color Modifier and Type Method Description voidDropShadow. setColor(Color value)Sets the value of the property color.voidInnerShadow. setColor(Color value)Sets the value of the property color.voidLight. setColor(Color value)Sets the value of the property color.voidShadow. setColor(Color value)Sets the value of the property color.Constructors in javafx.scene.effect with parameters of type Color Constructor Description Distant(double azimuth, double elevation, Color color)Creates 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.Point(double x, double y, double z, Color color)Creates a new instance of Point light with the specified x, y, x, and color.Shadow(double radius, Color color)Creates a new instance of Shadow with specified radius and color.Shadow(BlurType blurType, Color color, double radius)Creates a new instance of Shadow with the specified blurType, color, radius.Spot(double x, double y, double z, double specularExponent, Color color)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 Color Modifier and Type Method Description ColorPixelReader. 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 Modifier and Type Method Description voidPixelWriter. setColor(int x, int y, Color c)Stores pixel data for aColorinto the specified coordinates of the surface. -
Uses of Color in javafx.scene.paint
Fields in javafx.scene.paint declared as Color Modifier and Type Field Description static ColorColor. ALICEBLUEThe color alice blue with an RGB value of #F0F8FFstatic ColorColor. ANTIQUEWHITEThe color antique white with an RGB value of #FAEBD7static ColorColor. AQUAThe color aqua with an RGB value of #00FFFFstatic ColorColor. AQUAMARINEThe color aquamarine with an RGB value of #7FFFD4static ColorColor. AZUREThe color azure with an RGB value of #F0FFFFstatic ColorColor. BEIGEThe color beige with an RGB value of #F5F5DCstatic ColorColor. BISQUEThe color bisque with an RGB value of #FFE4C4static ColorColor. BLACKThe color black with an RGB value of #000000static ColorColor. BLANCHEDALMONDThe color blanched almond with an RGB value of #FFEBCDstatic ColorColor. BLUEThe color blue with an RGB value of #0000FFstatic ColorColor. BLUEVIOLETThe color blue violet with an RGB value of #8A2BE2static ColorColor. BROWNThe color brown with an RGB value of #A52A2Astatic ColorColor. BURLYWOODThe color burly wood with an RGB value of #DEB887static ColorColor. CADETBLUEThe color cadet blue with an RGB value of #5F9EA0static ColorColor. CHARTREUSEThe color chartreuse with an RGB value of #7FFF00static ColorColor. CHOCOLATEThe color chocolate with an RGB value of #D2691Estatic ColorColor. CORALThe color coral with an RGB value of #FF7F50static ColorColor. CORNFLOWERBLUEThe color cornflower blue with an RGB value of #6495EDstatic ColorColor. CORNSILKThe color cornsilk with an RGB value of #FFF8DCstatic ColorColor. CRIMSONThe color crimson with an RGB value of #DC143Cstatic ColorColor. CYANThe color cyan with an RGB value of #00FFFFstatic ColorColor. DARKBLUEThe color dark blue with an RGB value of #00008Bstatic ColorColor. DARKCYANThe color dark cyan with an RGB value of #008B8Bstatic ColorColor. DARKGOLDENRODThe color dark goldenrod with an RGB value of #B8860Bstatic ColorColor. DARKGRAYThe color dark gray with an RGB value of #A9A9A9static ColorColor. DARKGREENThe color dark green with an RGB value of #006400static ColorColor. DARKGREYThe color dark grey with an RGB value of #A9A9A9static ColorColor. DARKKHAKIThe color dark khaki with an RGB value of #BDB76Bstatic ColorColor. DARKMAGENTAThe color dark magenta with an RGB value of #8B008Bstatic ColorColor. DARKOLIVEGREENThe color dark olive green with an RGB value of #556B2Fstatic ColorColor. DARKORANGEThe color dark orange with an RGB value of #FF8C00static ColorColor. DARKORCHIDThe color dark orchid with an RGB value of #9932CCstatic ColorColor. DARKREDThe color dark red with an RGB value of #8B0000static ColorColor. DARKSALMONThe color dark salmon with an RGB value of #E9967Astatic ColorColor. DARKSEAGREENThe color dark sea green with an RGB value of #8FBC8Fstatic ColorColor. DARKSLATEBLUEThe color dark slate blue with an RGB value of #483D8Bstatic ColorColor. DARKSLATEGRAYThe color dark slate gray with an RGB value of #2F4F4Fstatic ColorColor. DARKSLATEGREYThe color dark slate grey with an RGB value of #2F4F4Fstatic ColorColor. DARKTURQUOISEThe color dark turquoise with an RGB value of #00CED1static ColorColor. DARKVIOLETThe color dark violet with an RGB value of #9400D3static ColorColor. DEEPPINKThe color deep pink with an RGB value of #FF1493static ColorColor. DEEPSKYBLUEThe color deep sky blue with an RGB value of #00BFFFstatic ColorColor. DIMGRAYThe color dim gray with an RGB value of #696969static ColorColor. DIMGREYThe color dim grey with an RGB value of #696969static ColorColor. DODGERBLUEThe color dodger blue with an RGB value of #1E90FFstatic ColorColor. FIREBRICKThe color firebrick with an RGB value of #B22222static ColorColor. FLORALWHITEThe color floral white with an RGB value of #FFFAF0static ColorColor. FORESTGREENThe color forest green with an RGB value of #228B22static ColorColor. FUCHSIAThe color fuchsia with an RGB value of #FF00FFstatic ColorColor. GAINSBOROThe color gainsboro with an RGB value of #DCDCDCstatic ColorColor. GHOSTWHITEThe color ghost white with an RGB value of #F8F8FFstatic ColorColor. GOLDThe color gold with an RGB value of #FFD700static ColorColor. GOLDENRODThe color goldenrod with an RGB value of #DAA520static ColorColor. GRAYThe color gray with an RGB value of #808080static ColorColor. GREENThe color green with an RGB value of #008000static ColorColor. GREENYELLOWThe color green yellow with an RGB value of #ADFF2Fstatic ColorColor. GREYThe color grey with an RGB value of #808080static ColorColor. HONEYDEWThe color honeydew with an RGB value of #F0FFF0static ColorColor. HOTPINKThe color hot pink with an RGB value of #FF69B4static ColorColor. INDIANREDThe color indian red with an RGB value of #CD5C5Cstatic ColorColor. INDIGOThe color indigo with an RGB value of #4B0082static ColorColor. IVORYThe color ivory with an RGB value of #FFFFF0static ColorColor. KHAKIThe color khaki with an RGB value of #F0E68Cstatic ColorColor. LAVENDERThe color lavender with an RGB value of #E6E6FAstatic ColorColor. LAVENDERBLUSHThe color lavender blush with an RGB value of #FFF0F5static ColorColor. LAWNGREENThe color lawn green with an RGB value of #7CFC00static ColorColor. LEMONCHIFFONThe color lemon chiffon with an RGB value of #FFFACDstatic ColorColor. LIGHTBLUEThe color light blue with an RGB value of #ADD8E6static ColorColor. LIGHTCORALThe color light coral with an RGB value of #F08080static ColorColor. LIGHTCYANThe color light cyan with an RGB value of #E0FFFFstatic ColorColor. LIGHTGOLDENRODYELLOWThe color light goldenrod yellow with an RGB value of #FAFAD2static ColorColor. LIGHTGRAYThe color light gray with an RGB value of #D3D3D3static ColorColor. LIGHTGREENThe color light green with an RGB value of #90EE90static ColorColor. LIGHTGREYThe color light grey with an RGB value of #D3D3D3static ColorColor. LIGHTPINKThe color light pink with an RGB value of #FFB6C1static ColorColor. LIGHTSALMONThe color light salmon with an RGB value of #FFA07Astatic ColorColor. LIGHTSEAGREENThe color light sea green with an RGB value of #20B2AAstatic ColorColor. LIGHTSKYBLUEThe color light sky blue with an RGB value of #87CEFAstatic ColorColor. LIGHTSLATEGRAYThe color light slate gray with an RGB value of #778899static ColorColor. LIGHTSLATEGREYThe color light slate grey with an RGB value of #778899static ColorColor. LIGHTSTEELBLUEThe color light steel blue with an RGB value of #B0C4DEstatic ColorColor. LIGHTYELLOWThe color light yellow with an RGB value of #FFFFE0static ColorColor. LIMEThe color lime with an RGB value of #00FF00static ColorColor. LIMEGREENThe color lime green with an RGB value of #32CD32static ColorColor. LINENThe color linen with an RGB value of #FAF0E6static ColorColor. MAGENTAThe color magenta with an RGB value of #FF00FFstatic ColorColor. MAROONThe color maroon with an RGB value of #800000static ColorColor. MEDIUMAQUAMARINEThe color medium aquamarine with an RGB value of #66CDAAstatic ColorColor. MEDIUMBLUEThe color medium blue with an RGB value of #0000CDstatic ColorColor. MEDIUMORCHIDThe color medium orchid with an RGB value of #BA55D3static ColorColor. MEDIUMPURPLEThe color medium purple with an RGB value of #9370DBstatic ColorColor. MEDIUMSEAGREENThe color medium sea green with an RGB value of #3CB371static ColorColor. MEDIUMSLATEBLUEThe color medium slate blue with an RGB value of #7B68EEstatic ColorColor. MEDIUMSPRINGGREENThe color medium spring green with an RGB value of #00FA9Astatic ColorColor. MEDIUMTURQUOISEThe color medium turquoise with an RGB value of #48D1CCstatic ColorColor. MEDIUMVIOLETREDThe color medium violet red with an RGB value of #C71585static ColorColor. MIDNIGHTBLUEThe color midnight blue with an RGB value of #191970static ColorColor. MINTCREAMThe color mint cream with an RGB value of #F5FFFAstatic ColorColor. MISTYROSEThe color misty rose with an RGB value of #FFE4E1static ColorColor. MOCCASINThe color moccasin with an RGB value of #FFE4B5static ColorColor. NAVAJOWHITEThe color navajo white with an RGB value of #FFDEADstatic ColorColor. NAVYThe color navy with an RGB value of #000080static ColorColor. OLDLACEThe color old lace with an RGB value of #FDF5E6static ColorColor. OLIVEThe color olive with an RGB value of #808000static ColorColor. OLIVEDRABThe color olive drab with an RGB value of #6B8E23static ColorColor. ORANGEThe color orange with an RGB value of #FFA500static ColorColor. ORANGEREDThe color orange red with an RGB value of #FF4500static ColorColor. ORCHIDThe color orchid with an RGB value of #DA70D6static ColorColor. PALEGOLDENRODThe color pale goldenrod with an RGB value of #EEE8AAstatic ColorColor. PALEGREENThe color pale green with an RGB value of #98FB98static ColorColor. PALETURQUOISEThe color pale turquoise with an RGB value of #AFEEEEstatic ColorColor. PALEVIOLETREDThe color pale violet red with an RGB value of #DB7093static ColorColor. PAPAYAWHIPThe color papaya whip with an RGB value of #FFEFD5static ColorColor. PEACHPUFFThe color peach puff with an RGB value of #FFDAB9static ColorColor. PERUThe color peru with an RGB value of #CD853Fstatic ColorColor. PINKThe color pink with an RGB value of #FFC0CBstatic ColorColor. PLUMThe color plum with an RGB value of #DDA0DDstatic ColorColor. POWDERBLUEThe color powder blue with an RGB value of #B0E0E6static ColorColor. PURPLEThe color purple with an RGB value of #800080static ColorColor. REDThe color red with an RGB value of #FF0000static ColorColor. ROSYBROWNThe color rosy brown with an RGB value of #BC8F8Fstatic ColorColor. ROYALBLUEThe color royal blue with an RGB value of #4169E1static ColorColor. SADDLEBROWNThe color saddle brown with an RGB value of #8B4513static ColorColor. SALMONThe color salmon with an RGB value of #FA8072static ColorColor. SANDYBROWNThe color sandy brown with an RGB value of #F4A460static ColorColor. SEAGREENThe color sea green with an RGB value of #2E8B57static ColorColor. SEASHELLThe color sea shell with an RGB value of #FFF5EEstatic ColorColor. SIENNAThe color sienna with an RGB value of #A0522Dstatic ColorColor. SILVERThe color silver with an RGB value of #C0C0C0static ColorColor. SKYBLUEThe color sky blue with an RGB value of #87CEEBstatic ColorColor. SLATEBLUEThe color slate blue with an RGB value of #6A5ACDstatic ColorColor. SLATEGRAYThe color slate gray with an RGB value of #708090static ColorColor. SLATEGREYThe color slate grey with an RGB value of #708090static ColorColor. SNOWThe color snow with an RGB value of #FFFAFAstatic ColorColor. SPRINGGREENThe color spring green with an RGB value of #00FF7Fstatic ColorColor. STEELBLUEThe color steel blue with an RGB value of #4682B4static ColorColor. TANThe color tan with an RGB value of #D2B48Cstatic ColorColor. TEALThe color teal with an RGB value of #008080static ColorColor. THISTLEThe color thistle with an RGB value of #D8BFD8static ColorColor. TOMATOThe color tomato with an RGB value of #FF6347static ColorColor. TRANSPARENTA fully transparent color with an ARGB value of #00000000.static ColorColor. TURQUOISEThe color turquoise with an RGB value of #40E0D0static ColorColor. VIOLETThe color violet with an RGB value of #EE82EEstatic ColorColor. WHEATThe color wheat with an RGB value of #F5DEB3static ColorColor. WHITEThe color white with an RGB value of #FFFFFFstatic ColorColor. WHITESMOKEThe color white smoke with an RGB value of #F5F5F5static ColorColor. YELLOWThe color yellow with an RGB value of #FFFF00static ColorColor. YELLOWGREENThe color yellow green with an RGB value of #9ACD32Methods in javafx.scene.paint that return Color Modifier and Type Method Description ColorColor. 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.ColorColor. darker()Creates a new Color that is a darker version of this Color.ColorColor. deriveColor(double hueShift, double saturationFactor, double brightnessFactor, double opacityFactor)Creates a newColorbased on thisColorwith hue, saturation, brightness and opacity values altered.ColorColor. desaturate()Creates a new Color that is a less saturated version of this Color.ColorStop. getColor()Gets the color of the gradient at this offset.ColorPhongMaterial. getDiffuseColor()Gets the value of the property diffuseColor.ColorPhongMaterial. getSpecularColor()Gets the value of the property specularColor.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).ColorColor. 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.ColorColor. interpolate(Color endValue, double t)The function calculates an interpolated value along the fractiontbetween0.0and1.0.ColorColor. 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.ColorColor. saturate()Creates a new Color that is a more saturated version of this Color.static ColorColor. valueOf(String value)Creates a color value from a string representation.static ColorColor. web(String colorString)Creates an RGB color specified with an HTML or CSS attribute string.static ColorColor. web(String colorString, double opacity)Creates an RGB color specified with an HTML or CSS attribute string.Methods in javafx.scene.paint that return types with arguments of type Color Modifier and Type Method Description ObjectProperty<Color>PhongMaterial. diffuseColorProperty()The diffuse color of thisPhongMaterial.ObjectProperty<Color>PhongMaterial. specularColorProperty()The specular color of thisPhongMaterial.Methods in javafx.scene.paint with parameters of type Color Modifier and Type Method Description ColorColor. interpolate(Color endValue, double t)The function calculates an interpolated value along the fractiontbetween0.0and1.0.voidPhongMaterial. setDiffuseColor(Color value)Sets the value of the property diffuseColor.voidPhongMaterial. setSpecularColor(Color value)Sets the value of the property specularColor.Constructors in javafx.scene.paint with parameters of type Color Constructor Description PhongMaterial(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.Stop(double offset, Color color)Creates a new instance of Stop. -
Uses of Color in javafx.scene.robot
Methods in javafx.scene.robot that return Color Modifier and Type Method Description ColorRobot. getPixelColor(double x, double y)Returns theColorof the pixel at the screen coordinates relative to the primary screen specified bylocation.ColorRobot. getPixelColor(Point2D location)Returns theColorof the pixel at the screen coordinates relative to the primary screen specified bylocation.