- java.lang.Object
- 
- javafx.scene.effect.Light
- 
- javafx.scene.effect.Light.Point
 
 
- 
- Direct Known Subclasses:
- Light.Spot
 - Enclosing class:
- Light
 
 
 public static class Light.Point extends Light Represents a light source at a given position in 3D space.Example: Light.Point light = new Light.Point(); light.setX(100); light.setY(100); light.setZ(50); Lighting lighting = new Lighting(); lighting.setLight(light); lighting.setSurfaceScale(5.0); Text text = new Text(); text.setText("Point"); text.setFill(Color.STEELBLUE); text.setFont(Font.font(null, FontWeight.BOLD, 80)); text.setX(10.0); text.setY(10.0); text.setTextOrigin(VPos.TOP); Rectangle rect = new Rectangle(250, 150); rect.setFill(Color.ALICEBLUE); rect.setEffect(lighting); text.setEffect(lighting);The code above produces the following:   - Since:
- JavaFX 2.0
 
- 
- 
Property SummaryProperties Type Property Description DoublePropertyxThe x coordinate of the light position.DoublePropertyyThe y coordinate of the light position.DoublePropertyzThe z coordinate of the light position.
 - 
Nested Class Summary- 
Nested classes/interfaces inherited from class javafx.scene.effect.LightLight.Distant, Light.Point, Light.Spot
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetX()Gets the value of the property x.doublegetY()Gets the value of the property y.doublegetZ()Gets the value of the property z.voidsetX(double value)Sets the value of the property x.voidsetY(double value)Sets the value of the property y.voidsetZ(double value)Sets the value of the property z.DoublePropertyxProperty()The x coordinate of the light position.DoublePropertyyProperty()The y coordinate of the light position.DoublePropertyzProperty()The z coordinate of the light position.- 
Methods inherited from class javafx.scene.effect.LightcolorProperty, getColor, setColor
 
- 
 
- 
- 
- 
Property Detail- 
xpublic final DoubleProperty xProperty The x coordinate of the light position.Min: n/a Max: n/a Default: 0.0 Identity: n/a- Default value:
- 0.0
- See Also:
- getX(),- setX(double)
 
 - 
ypublic final DoubleProperty yProperty The y coordinate of the light position.Min: n/a Max: n/a Default: 0.0 Identity: n/a- Default value:
- 0.0
- See Also:
- getY(),- setY(double)
 
 - 
zpublic final DoubleProperty zProperty The z coordinate of the light position.Min: n/a Max: n/a Default: 0.0 Identity: n/a- Default value:
- 0.0
- See Also:
- getZ(),- setZ(double)
 
 
- 
 - 
Constructor Detail- 
Pointpublic Point() Creates a new instance of Point light with default parameters.
 - 
Pointpublic Point(double x, double y, double z, Color color)Creates a new instance of Point light with the specified x, y, x, and color.- Parameters:
- x- the x coordinate of the light position
- y- the y coordinate of the light position
- z- the z coordinate of the light position
- color- the color of the light
- Since:
- JavaFX 2.1
 
 
- 
 - 
Method Detail- 
setXpublic final void setX(double value) Sets the value of the property x.- Property description:
- The x coordinate of the light position.
 Min: n/a Max: n/a Default: 0.0 Identity: n/a
- Default value:
- 0.0
 
 - 
getXpublic final double getX() Gets the value of the property x.- Property description:
- The x coordinate of the light position.
 Min: n/a Max: n/a Default: 0.0 Identity: n/a
- Default value:
- 0.0
 
 - 
xPropertypublic final DoubleProperty xProperty() The x coordinate of the light position.Min: n/a Max: n/a Default: 0.0 Identity: n/a- Default value:
- 0.0
- See Also:
- getX(),- setX(double)
 
 - 
setYpublic final void setY(double value) Sets the value of the property y.- Property description:
- The y coordinate of the light position.
 Min: n/a Max: n/a Default: 0.0 Identity: n/a
- Default value:
- 0.0
 
 - 
getYpublic final double getY() Gets the value of the property y.- Property description:
- The y coordinate of the light position.
 Min: n/a Max: n/a Default: 0.0 Identity: n/a
- Default value:
- 0.0
 
 - 
yPropertypublic final DoubleProperty yProperty() The y coordinate of the light position.Min: n/a Max: n/a Default: 0.0 Identity: n/a- Default value:
- 0.0
- See Also:
- getY(),- setY(double)
 
 - 
setZpublic final void setZ(double value) Sets the value of the property z.- Property description:
- The z coordinate of the light position.
 Min: n/a Max: n/a Default: 0.0 Identity: n/a
- Default value:
- 0.0
 
 - 
getZpublic final double getZ() Gets the value of the property z.- Property description:
- The z coordinate of the light position.
 Min: n/a Max: n/a Default: 0.0 Identity: n/a
- Default value:
- 0.0
 
 - 
zPropertypublic final DoubleProperty zProperty() The z coordinate of the light position.Min: n/a Max: n/a Default: 0.0 Identity: n/a- Default value:
- 0.0
- See Also:
- getZ(),- setZ(double)
 
 
- 
 
-