public abstract class Light extends Object
| Type | Property and Description |
|---|---|
ObjectProperty<Color> |
color
The color of the light source.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Light.Distant
Represents a distant light source.
|
static class |
Light.Point
Represents a light source at a given position in 3D space.
|
static class |
Light.Spot
Represents a spot light source at a given position in 3D space, with
configurable direction and focus.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Light()
Creates a new Light.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectProperty<Color> |
colorProperty()
The color of the light source.
|
Color |
getColor()
Gets the value of the property color.
|
void |
setColor(Color value)
Sets the value of the property color.
|
public final ObjectProperty<Color> colorProperty
Min: n/a
Max: n/a
Default: Color.WHITE
Identity: n/a
getColor(),
setColor(Color)public final void setColor(Color value)
Min: n/a
Max: n/a
Default: Color.WHITE
Identity: n/a
public final Color getColor()
Min: n/a
Max: n/a
Default: Color.WHITE
Identity: n/a
public final ObjectProperty<Color> colorProperty()
Min: n/a
Max: n/a
Default: Color.WHITE
Identity: n/a
getColor(),
setColor(Color)Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.