Uses of Class
javafx.scene.paint.Color
-
Packages that use 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 variousStyleConverter
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 locatedjavafx.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 Color
FillTransition. getFromValue()
Gets the value of the property fromValue.Color
StrokeTransition. getFromValue()
Gets the value of the property fromValue.Color
FillTransition. getToValue()
Gets the value of the property toValue.Color
StrokeTransition. 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 void
FillTransition. setFromValue(Color value)
Sets the value of the property fromValue.void
StrokeTransition. setFromValue(Color value)
Sets the value of the property fromValue.void
FillTransition. setToValue(Color value)
Sets the value of the property toValue.void
StrokeTransition. 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 ofFillTransition
FillTransition(Duration duration, Shape shape, Color fromValue, Color toValue)
The constructor ofFillTransition
StrokeTransition(Duration duration, Color fromValue, Color toValue)
The constructor ofStrokeTransition
StrokeTransition(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 aStyleConverter
that 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 Color
ColorConverter. convert(ParsedValue<String,Color> value, Font font)
Color
DeriveColorConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font)
Color
LadderConverter. 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 Color
ColorConverter. convert(ParsedValue<String,Color> value, Font font)
Color
DeriveColorConverter. convert(ParsedValue<ParsedValue[],Color> value, Font font)
Color
LadderConverter. 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 Color
LightBase. 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 void
LightBase. 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 ofAmbientLight
class using the specified color.LightBase(Color color)
Creates a new instance ofLightBase
class using the specified color.PointLight(Color color)
Creates a new instance ofPointLight
class 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 Color
DropShadow. getColor()
Gets the value of the property color.Color
InnerShadow. getColor()
Gets the value of the property color.Color
Light. getColor()
Gets the value of the property color.Color
Shadow. 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 void
DropShadow. setColor(Color value)
Sets the value of the property color.void
InnerShadow. setColor(Color value)
Sets the value of the property color.void
Light. setColor(Color value)
Sets the value of the property color.void
Shadow. 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 Color
PixelReader. getColor(int x, int y)
Reads the color of a pixel from the specified coordinates in the surface and returns the value as aColor
object.Methods in javafx.scene.image with parameters of type Color Modifier and Type Method Description void
PixelWriter. setColor(int x, int y, Color c)
Stores pixel data for aColor
into 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 Color
Color. ALICEBLUE
The color alice blue with an RGB value of #F0F8FFstatic Color
Color. ANTIQUEWHITE
The color antique white with an RGB value of #FAEBD7static Color
Color. AQUA
The color aqua with an RGB value of #00FFFFstatic Color
Color. AQUAMARINE
The color aquamarine with an RGB value of #7FFFD4static Color
Color. AZURE
The color azure with an RGB value of #F0FFFFstatic Color
Color. BEIGE
The color beige with an RGB value of #F5F5DCstatic Color
Color. BISQUE
The color bisque with an RGB value of #FFE4C4static Color
Color. BLACK
The color black with an RGB value of #000000static Color
Color. BLANCHEDALMOND
The color blanched almond with an RGB value of #FFEBCDstatic Color
Color. BLUE
The color blue with an RGB value of #0000FFstatic Color
Color. BLUEVIOLET
The color blue violet with an RGB value of #8A2BE2static Color
Color. BROWN
The color brown with an RGB value of #A52A2Astatic Color
Color. BURLYWOOD
The color burly wood with an RGB value of #DEB887static Color
Color. CADETBLUE
The color cadet blue with an RGB value of #5F9EA0static Color
Color. CHARTREUSE
The color chartreuse with an RGB value of #7FFF00static Color
Color. CHOCOLATE
The color chocolate with an RGB value of #D2691Estatic Color
Color. CORAL
The color coral with an RGB value of #FF7F50static Color
Color. CORNFLOWERBLUE
The color cornflower blue with an RGB value of #6495EDstatic Color
Color. CORNSILK
The color cornsilk with an RGB value of #FFF8DCstatic Color
Color. CRIMSON
The color crimson with an RGB value of #DC143Cstatic Color
Color. CYAN
The color cyan with an RGB value of #00FFFFstatic Color
Color. DARKBLUE
The color dark blue with an RGB value of #00008Bstatic Color
Color. DARKCYAN
The color dark cyan with an RGB value of #008B8Bstatic Color
Color. DARKGOLDENROD
The color dark goldenrod with an RGB value of #B8860Bstatic Color
Color. DARKGRAY
The color dark gray with an RGB value of #A9A9A9static Color
Color. DARKGREEN
The color dark green with an RGB value of #006400static Color
Color. DARKGREY
The color dark grey with an RGB value of #A9A9A9static Color
Color. DARKKHAKI
The color dark khaki with an RGB value of #BDB76Bstatic Color
Color. DARKMAGENTA
The color dark magenta with an RGB value of #8B008Bstatic Color
Color. DARKOLIVEGREEN
The color dark olive green with an RGB value of #556B2Fstatic Color
Color. DARKORANGE
The color dark orange with an RGB value of #FF8C00static Color
Color. DARKORCHID
The color dark orchid with an RGB value of #9932CCstatic Color
Color. DARKRED
The color dark red with an RGB value of #8B0000static Color
Color. DARKSALMON
The color dark salmon with an RGB value of #E9967Astatic Color
Color. DARKSEAGREEN
The color dark sea green with an RGB value of #8FBC8Fstatic Color
Color. DARKSLATEBLUE
The color dark slate blue with an RGB value of #483D8Bstatic Color
Color. DARKSLATEGRAY
The color dark slate gray with an RGB value of #2F4F4Fstatic Color
Color. DARKSLATEGREY
The color dark slate grey with an RGB value of #2F4F4Fstatic Color
Color. DARKTURQUOISE
The color dark turquoise with an RGB value of #00CED1static Color
Color. DARKVIOLET
The color dark violet with an RGB value of #9400D3static Color
Color. DEEPPINK
The color deep pink with an RGB value of #FF1493static Color
Color. DEEPSKYBLUE
The color deep sky blue with an RGB value of #00BFFFstatic Color
Color. DIMGRAY
The color dim gray with an RGB value of #696969static Color
Color. DIMGREY
The color dim grey with an RGB value of #696969static Color
Color. DODGERBLUE
The color dodger blue with an RGB value of #1E90FFstatic Color
Color. FIREBRICK
The color firebrick with an RGB value of #B22222static Color
Color. FLORALWHITE
The color floral white with an RGB value of #FFFAF0static Color
Color. FORESTGREEN
The color forest green with an RGB value of #228B22static Color
Color. FUCHSIA
The color fuchsia with an RGB value of #FF00FFstatic Color
Color. GAINSBORO
The color gainsboro with an RGB value of #DCDCDCstatic Color
Color. GHOSTWHITE
The color ghost white with an RGB value of #F8F8FFstatic Color
Color. GOLD
The color gold with an RGB value of #FFD700static Color
Color. GOLDENROD
The color goldenrod with an RGB value of #DAA520static Color
Color. GRAY
The color gray with an RGB value of #808080static Color
Color. GREEN
The color green with an RGB value of #008000static Color
Color. GREENYELLOW
The color green yellow with an RGB value of #ADFF2Fstatic Color
Color. GREY
The color grey with an RGB value of #808080static Color
Color. HONEYDEW
The color honeydew with an RGB value of #F0FFF0static Color
Color. HOTPINK
The color hot pink with an RGB value of #FF69B4static Color
Color. INDIANRED
The color indian red with an RGB value of #CD5C5Cstatic Color
Color. INDIGO
The color indigo with an RGB value of #4B0082static Color
Color. IVORY
The color ivory with an RGB value of #FFFFF0static Color
Color. KHAKI
The color khaki with an RGB value of #F0E68Cstatic Color
Color. LAVENDER
The color lavender with an RGB value of #E6E6FAstatic Color
Color. LAVENDERBLUSH
The color lavender blush with an RGB value of #FFF0F5static Color
Color. LAWNGREEN
The color lawn green with an RGB value of #7CFC00static Color
Color. LEMONCHIFFON
The color lemon chiffon with an RGB value of #FFFACDstatic Color
Color. LIGHTBLUE
The color light blue with an RGB value of #ADD8E6static Color
Color. LIGHTCORAL
The color light coral with an RGB value of #F08080static Color
Color. LIGHTCYAN
The color light cyan with an RGB value of #E0FFFFstatic Color
Color. LIGHTGOLDENRODYELLOW
The color light goldenrod yellow with an RGB value of #FAFAD2static Color
Color. LIGHTGRAY
The color light gray with an RGB value of #D3D3D3static Color
Color. LIGHTGREEN
The color light green with an RGB value of #90EE90static Color
Color. LIGHTGREY
The color light grey with an RGB value of #D3D3D3static Color
Color. LIGHTPINK
The color light pink with an RGB value of #FFB6C1static Color
Color. LIGHTSALMON
The color light salmon with an RGB value of #FFA07Astatic Color
Color. LIGHTSEAGREEN
The color light sea green with an RGB value of #20B2AAstatic Color
Color. LIGHTSKYBLUE
The color light sky blue with an RGB value of #87CEFAstatic Color
Color. LIGHTSLATEGRAY
The color light slate gray with an RGB value of #778899static Color
Color. LIGHTSLATEGREY
The color light slate grey with an RGB value of #778899static Color
Color. LIGHTSTEELBLUE
The color light steel blue with an RGB value of #B0C4DEstatic Color
Color. LIGHTYELLOW
The color light yellow with an RGB value of #FFFFE0static Color
Color. LIME
The color lime with an RGB value of #00FF00static Color
Color. LIMEGREEN
The color lime green with an RGB value of #32CD32static Color
Color. LINEN
The color linen with an RGB value of #FAF0E6static Color
Color. MAGENTA
The color magenta with an RGB value of #FF00FFstatic Color
Color. MAROON
The color maroon with an RGB value of #800000static Color
Color. MEDIUMAQUAMARINE
The color medium aquamarine with an RGB value of #66CDAAstatic Color
Color. MEDIUMBLUE
The color medium blue with an RGB value of #0000CDstatic Color
Color. MEDIUMORCHID
The color medium orchid with an RGB value of #BA55D3static Color
Color. MEDIUMPURPLE
The color medium purple with an RGB value of #9370DBstatic Color
Color. MEDIUMSEAGREEN
The color medium sea green with an RGB value of #3CB371static Color
Color. MEDIUMSLATEBLUE
The color medium slate blue with an RGB value of #7B68EEstatic Color
Color. MEDIUMSPRINGGREEN
The color medium spring green with an RGB value of #00FA9Astatic Color
Color. MEDIUMTURQUOISE
The color medium turquoise with an RGB value of #48D1CCstatic Color
Color. MEDIUMVIOLETRED
The color medium violet red with an RGB value of #C71585static Color
Color. MIDNIGHTBLUE
The color midnight blue with an RGB value of #191970static Color
Color. MINTCREAM
The color mint cream with an RGB value of #F5FFFAstatic Color
Color. MISTYROSE
The color misty rose with an RGB value of #FFE4E1static Color
Color. MOCCASIN
The color moccasin with an RGB value of #FFE4B5static Color
Color. NAVAJOWHITE
The color navajo white with an RGB value of #FFDEADstatic Color
Color. NAVY
The color navy with an RGB value of #000080static Color
Color. OLDLACE
The color old lace with an RGB value of #FDF5E6static Color
Color. OLIVE
The color olive with an RGB value of #808000static Color
Color. OLIVEDRAB
The color olive drab with an RGB value of #6B8E23static Color
Color. ORANGE
The color orange with an RGB value of #FFA500static Color
Color. ORANGERED
The color orange red with an RGB value of #FF4500static Color
Color. ORCHID
The color orchid with an RGB value of #DA70D6static Color
Color. PALEGOLDENROD
The color pale goldenrod with an RGB value of #EEE8AAstatic Color
Color. PALEGREEN
The color pale green with an RGB value of #98FB98static Color
Color. PALETURQUOISE
The color pale turquoise with an RGB value of #AFEEEEstatic Color
Color. PALEVIOLETRED
The color pale violet red with an RGB value of #DB7093static Color
Color. PAPAYAWHIP
The color papaya whip with an RGB value of #FFEFD5static Color
Color. PEACHPUFF
The color peach puff with an RGB value of #FFDAB9static Color
Color. PERU
The color peru with an RGB value of #CD853Fstatic Color
Color. PINK
The color pink with an RGB value of #FFC0CBstatic Color
Color. PLUM
The color plum with an RGB value of #DDA0DDstatic Color
Color. POWDERBLUE
The color powder blue with an RGB value of #B0E0E6static Color
Color. PURPLE
The color purple with an RGB value of #800080static Color
Color. RED
The color red with an RGB value of #FF0000static Color
Color. ROSYBROWN
The color rosy brown with an RGB value of #BC8F8Fstatic Color
Color. ROYALBLUE
The color royal blue with an RGB value of #4169E1static Color
Color. SADDLEBROWN
The color saddle brown with an RGB value of #8B4513static Color
Color. SALMON
The color salmon with an RGB value of #FA8072static Color
Color. SANDYBROWN
The color sandy brown with an RGB value of #F4A460static Color
Color. SEAGREEN
The color sea green with an RGB value of #2E8B57static Color
Color. SEASHELL
The color sea shell with an RGB value of #FFF5EEstatic Color
Color. SIENNA
The color sienna with an RGB value of #A0522Dstatic Color
Color. SILVER
The color silver with an RGB value of #C0C0C0static Color
Color. SKYBLUE
The color sky blue with an RGB value of #87CEEBstatic Color
Color. SLATEBLUE
The color slate blue with an RGB value of #6A5ACDstatic Color
Color. SLATEGRAY
The color slate gray with an RGB value of #708090static Color
Color. SLATEGREY
The color slate grey with an RGB value of #708090static Color
Color. SNOW
The color snow with an RGB value of #FFFAFAstatic Color
Color. SPRINGGREEN
The color spring green with an RGB value of #00FF7Fstatic Color
Color. STEELBLUE
The color steel blue with an RGB value of #4682B4static Color
Color. TAN
The color tan with an RGB value of #D2B48Cstatic Color
Color. TEAL
The color teal with an RGB value of #008080static Color
Color. THISTLE
The color thistle with an RGB value of #D8BFD8static Color
Color. TOMATO
The color tomato with an RGB value of #FF6347static Color
Color. TRANSPARENT
A fully transparent color with an ARGB value of #00000000.static Color
Color. TURQUOISE
The color turquoise with an RGB value of #40E0D0static Color
Color. VIOLET
The color violet with an RGB value of #EE82EEstatic Color
Color. WHEAT
The color wheat with an RGB value of #F5DEB3static Color
Color. WHITE
The color white with an RGB value of #FFFFFFstatic Color
Color. WHITESMOKE
The color white smoke with an RGB value of #F5F5F5static Color
Color. YELLOW
The color yellow with an RGB value of #FFFF00static Color
Color. YELLOWGREEN
The color yellow green with an RGB value of #9ACD32Methods in javafx.scene.paint that return Color Modifier and Type Method Description Color
Color. brighter()
Creates a new Color that is a brighter version of this Color.static Color
Color. 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 Color
Color. 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
Color. darker()
Creates a new Color that is a darker version of this Color.Color
Color. deriveColor(double hueShift, double saturationFactor, double brightnessFactor, double opacityFactor)
Creates a newColor
based on thisColor
with hue, saturation, brightness and opacity values altered.Color
Color. desaturate()
Creates a new Color that is a less saturated version of this Color.Color
Stop. getColor()
Gets the color of the gradient at this offset.Color
PhongMaterial. getDiffuseColor()
Gets the value of the property diffuseColor.Color
PhongMaterial. getSpecularColor()
Gets the value of the property specularColor.static Color
Color. gray(double gray)
Creates an opaque grey color.static Color
Color. gray(double gray, double opacity)
Creates a grey color.static Color
Color. grayRgb(int gray)
This is a shortcut forrgb(gray, gray, gray)
.static Color
Color. grayRgb(int gray, double opacity)
This is a shortcut forrgb(gray, gray, gray, opacity)
.Color
Color. grayscale()
Creates a new Color that is grayscale equivalent of this Color.static Color
Color. hsb(double hue, double saturation, double brightness)
Creates an opaqueColor
based on the specified values in the HSB color model.static Color
Color. hsb(double hue, double saturation, double brightness, double opacity)
Creates aColor
based on the specified values in the HSB color model, and a given opacity.Color
Color. interpolate(Color endValue, double t)
The function calculates an interpolated value along the fractiont
between0.0
and1.0
.Color
Color. invert()
Creates a new Color that is inversion of this Color.static Color
Color. rgb(int red, int green, int blue)
Creates an opaque sRGB color with the specified RGB values in the range0-255
.static Color
Color. 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
Color. saturate()
Creates a new Color that is a more saturated version of this Color.static Color
Color. valueOf(String value)
Creates a color value from a string representation.static Color
Color. web(String colorString)
Creates an RGB color specified with an HTML or CSS attribute string.static Color
Color. 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 Color
Color. interpolate(Color endValue, double t)
The function calculates an interpolated value along the fractiont
between0.0
and1.0
.void
PhongMaterial. setDiffuseColor(Color value)
Sets the value of the property diffuseColor.void
PhongMaterial. 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 ofPhongMaterial
class using the specified color for itsdiffuseColor
property.PhongMaterial(Color diffuseColor, Image diffuseMap, Image specularMap, Image bumpMap, Image selfIlluminationMap)
Creates a new instance ofPhongMaterial
class using the specified colors and images for itsdiffuseColor
properties.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 Color
Robot. getPixelColor(double x, double y)
Returns theColor
of the pixel at the screen coordinates relative to the primary screen specified bylocation
.Color
Robot. getPixelColor(Point2D location)
Returns theColor
of the pixel at the screen coordinates relative to the primary screen specified bylocation
.
-