|
Spec-Zone .ru
спецификации, руководства, описания, API
|
public static class Light.Spot extends Light.Point
import javafx.scene.*;
import javafx.scene.effect.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
import javafx.scene.text.*;
import javafx.geometry.*;
Light.Spot light = new Light.Spot();
light.setX(0);
light.setY(100);
light.setZ(50);
light.setPointsAtX(400);
light.setPointsAtY(0);
light.setPointsAtZ(0);
light.setSpecularExponent(2);
Lighting l = new Lighting();
l.setLight(light);
l.setSurfaceScale(5.0);
Text t = new Text();
t.setText("Spot");
t.setFill(Color.RED);
t.setFont(Font.font(null, FontWeight.BOLD, 90));
t.setX(10.0);
t.setY(10.0);
t.setTextOrigin(VPos.TOP);
t.setEffect(l);
Rectangle r = new Rectangle();
r.setFill(Color.BLACK);
Group g = new Group();
g.getChildren().add(r);
g.getChildren().add(t);
r.setWidth(t.getLayoutBounds().getWidth() + 30);
r.setHeight(t.getLayoutBounds().getHeight() + 20);
| Type | Property and Description |
|---|---|
DoubleProperty |
pointsAtX
The x coordinate of the direction vector for this light.
|
DoubleProperty |
pointsAtY
The y coordinate of the direction vector for this light.
|
DoubleProperty |
pointsAtZ
The z coordinate of the direction vector for this light.
|
DoubleProperty |
specularExponent
The specular exponent, which controls the focus of this
light source.
|
xProperty, yProperty, zPropertycolorPropertyLight.Distant, Light.Point, Light.Spot| Constructor and Description |
|---|
Light.Spot() |
| Modifier and Type | Method and Description |
|---|---|
double |
getPointsAtX()
The x coordinate of the direction vector for this light.
|
double |
getPointsAtY()
The y coordinate of the direction vector for this light.
|
double |
getPointsAtZ()
The z coordinate of the direction vector for this light.
|
double |
getSpecularExponent()
The specular exponent, which controls the focus of this
light source.
|
DoubleProperty |
pointsAtXProperty()
The x coordinate of the direction vector for this light.
|
DoubleProperty |
pointsAtYProperty()
The y coordinate of the direction vector for this light.
|
DoubleProperty |
pointsAtZProperty()
The z coordinate of the direction vector for this light.
|
void |
setPointsAtX(double value)
The x coordinate of the direction vector for this light.
|
void |
setPointsAtY(double value)
The y coordinate of the direction vector for this light.
|
void |
setPointsAtZ(double value)
The z coordinate of the direction vector for this light.
|
void |
setSpecularExponent(double value)
The specular exponent, which controls the focus of this
light source.
|
DoubleProperty |
specularExponentProperty()
The specular exponent, which controls the focus of this
light source.
|
getX, getY, getZ, setX, setY, setZ, xProperty, yProperty, zPropertycolorProperty, getColor, setColor
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
getPointsAtX(),
setPointsAtX(double)
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
getPointsAtY(),
setPointsAtY(double)
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
getPointsAtZ(),
setPointsAtZ(double)
Min: 0.0
Max: 4.0
Default: 1.0
Identity: 1.0
public final void setPointsAtX(double value)
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
public final double getPointsAtX()
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
public final DoubleProperty pointsAtXProperty()
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
getPointsAtX(),
setPointsAtX(double)public final void setPointsAtY(double value)
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
public final double getPointsAtY()
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
public final DoubleProperty pointsAtYProperty()
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
getPointsAtY(),
setPointsAtY(double)public final void setPointsAtZ(double value)
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
public final double getPointsAtZ()
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
public final DoubleProperty pointsAtZProperty()
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
getPointsAtZ(),
setPointsAtZ(double)public final void setSpecularExponent(double value)
Min: 0.0
Max: 4.0
Default: 1.0
Identity: 1.0
public final double getSpecularExponent()
Min: 0.0
Max: 4.0
Default: 1.0
Identity: 1.0
public final DoubleProperty specularExponentProperty()
Min: 0.0
Max: 4.0
Default: 1.0
Identity: 1.0
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to .