javafx.scene.effect
Class Light
- javafx.scene.effect.Light
Direct Known Subclasses:
public abstract class Light extends Object
The abstract base class for all light implementations.
Since:
JavaFX 2.0
-
Property Summary
All MethodsInstance MethodsConcrete Methods Type Property and Description ObjectProperty<Color>colorThe color of the light source.
-
Nested Class Summary
Nested Classes Modifier and Type Class and 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 Summary
Constructors Modifier Constructor and Description protectedLight()Creates a new Light.
-
Method Summary
All MethodsInstance MethodsConcrete Methods Modifier and Type Method and 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
-
color
public final ObjectProperty<Color> colorProperty
The color of the light source.Min: n/a Max: n/a Default: Color.WHITE Identity: n/aDefault value:
WHITE
See Also:
-
-
Constructor Detail
-
Light
protected Light()
Creates a new Light.
-
-
Method Detail
-
setColor
public 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/aDefault value:
WHITE
-
getColor
public 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/aDefault value:
WHITE
-
colorProperty
public final ObjectProperty<Color> colorProperty()
The color of the light source.Min: n/a Max: n/a Default: Color.WHITE Identity: n/aDefault value:
WHITE
See Also:
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.