java.lang.Object
javafx.scene.effect.Light
- Direct Known Subclasses:
Light.Distant
,Light.Point
The abstract base class for all light implementations.
- Since:
- JavaFX 2.0
-
Property Summary
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a distant light source.static class
Represents a light source at a given position in 3D space.static class
Represents a spot light source at a given position in 3D space, with configurable direction and focus. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectProperty
<Color> The color of the light source.final Color
getColor()
Gets the value of thecolor
property.final void
Sets the value of thecolor
property.
-
Property Details
-
color
The color of the light source.Min: n/a Max: n/a Default: Color.WHITE Identity: n/a
- Default value:
- WHITE
- See Also:
-
-
Constructor Details
-
Light
protected Light()Creates a new Light.
-
-
Method Details
-
setColor
Sets the value of thecolor
property.- Property description:
- The color of the light source.
Min: n/a Max: n/a Default: Color.WHITE Identity: n/a
- Default value:
- WHITE
- Parameters:
value
- the value for thecolor
property- See Also:
-
getColor
Gets the value of thecolor
property.- Property description:
- The color of the light source.
Min: n/a Max: n/a Default: Color.WHITE Identity: n/a
- Default value:
- WHITE
- Returns:
- the value of the
color
property - See Also:
-
colorProperty
The color of the light source.Min: n/a Max: n/a Default: Color.WHITE Identity: n/a
- Default value:
- WHITE
- Returns:
- the
color
property - See Also:
-