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)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.