- java.lang.Object
- 
- javafx.scene.effect.Light
 
- 
- Direct Known Subclasses:
- Light.Distant,- Light.Point
 
 public abstract class Light extends Object The abstract base class for all light implementations.- Since:
- JavaFX 2.0
 
- 
- 
Property SummaryProperties Type Property Description ObjectProperty<Color>colorThe color of the light source.
 - 
Nested Class SummaryNested Classes Modifier and Type Class Description static classLight.DistantRepresents a distant light source.static classLight.PointRepresents a light source at a given position in 3D space.static classLight.SpotRepresents a spot light source at a given position in 3D space, with configurable direction and focus.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedLight()Creates a new Light.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectProperty<Color>colorProperty()The color of the light source.ColorgetColor()Gets the value of the property color.voidsetColor(Color value)Sets the value of the property color.
 
- 
- 
- 
Property Detail- 
colorpublic final ObjectProperty<Color> colorProperty The color of the light source.Min: n/a Max: n/a Default: Color.WHITE Identity: n/a- Default value:
- WHITE
- See Also:
- getColor(),- setColor(Color)
 
 
- 
 - 
Method Detail- 
setColorpublic final void setColor(Color value) Sets the value of the property color.- Property description:
- The color of the light source.
 Min: n/a Max: n/a Default: Color.WHITE Identity: n/a
- Default value:
- WHITE
 
 - 
getColorpublic final Color getColor() Gets the value of the property color.- Property description:
- The color of the light source.
 Min: n/a Max: n/a Default: Color.WHITE Identity: n/a
- Default value:
- WHITE
 
 - 
colorPropertypublic final ObjectProperty<Color> colorProperty() The color of the light source.Min: n/a Max: n/a Default: Color.WHITE Identity: n/a- Default value:
- WHITE
- See Also:
- getColor(),- setColor(Color)
 
 
- 
 
-