- java.lang.Object
-
- javafx.scene.effect.Light
-
- javafx.scene.effect.Light.Point
-
- javafx.scene.effect.Light.Spot
-
- 含まれているクラス:
- Light
public static class Light.Spot extends Light.Point
構成可能な方向および焦点を使用して3Dスペース内の特定の位置の光源を表します。例:
Light.Spot light = new Light.Spot(); light.setX(150); light.setY(100); light.setZ(80); light.setPointsAtX(0); light.setPointsAtY(0); light.setPointsAtZ(-50); light.setSpecularExponent(2); Lighting lighting = new Lighting(); lighting.setLight(light); lighting.setSurfaceScale(5.0); Text text = new Text(); text.setText("Spot"); text.setFill(Color.STEELBLUE); text.setFont(Font.font(null, FontWeight.BOLD, 80)); text.setX(10.0); text.setY(10.0); text.setTextOrigin(VPos.TOP); text.setEffect(lighting); Rectangle rect = new Rectangle(200, 150); rect.setFill(Color.ALICEBLUE); rect.setEffect(lighting);前述のコードにより、次の出力が生成されます。
- 導入されたバージョン:
- JavaFX 2.0
-
-
プロパティのサマリー
プロパティ Type プロパティ 説明 DoublePropertypointsAtXこの光の方向ベクトルのX座標。DoublePropertypointsAtYこの光の方向ベクトルのY座標。DoublePropertypointsAtZこの光の方向ベクトルのZ座標。DoublePropertyspecularExponentこの光源の焦点を制御する鏡面指数。-
クラス javafx.scene.effect.Light.Pointで宣言されたプロパティ
x、y、z
-
-
ネストされたクラスのサマリー
-
クラス javafx.scene.effect.Lightで宣言されたネストされたクラス/インタフェース
Light.Distant、Light.Point、Light.Spot
-
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 doublegetPointsAtX()プロパティpointsAtXの値を取得します。doublegetPointsAtY()プロパティpointsAtYの値を取得します。doublegetPointsAtZ()プロパティpointsAtZの値を取得します。doublegetSpecularExponent()プロパティspecularExponentの値を取得します。DoublePropertypointsAtXProperty()この光の方向ベクトルのX座標。DoublePropertypointsAtYProperty()この光の方向ベクトルのY座標。DoublePropertypointsAtZProperty()この光の方向ベクトルのZ座標。voidsetPointsAtX(double value)プロパティpointsAtXの値を設定します。voidsetPointsAtY(double value)プロパティpointsAtYの値を設定します。voidsetPointsAtZ(double value)プロパティpointsAtZの値を設定します。voidsetSpecularExponent(double value)プロパティspecularExponentの値を設定します。DoublePropertyspecularExponentProperty()この光源の焦点を制御する鏡面指数。-
クラス javafx.scene.effect.Lightで宣言されたメソッド
colorProperty、getColor、setColor
-
-
-
-
プロパティの詳細
-
pointsAtX
public final DoubleProperty pointsAtXProperty
この光の方向ベクトルのX座標。Min: n/a Max: n/a Default: 0.0 Identity: n/a- デフォルト値:
- 0.0
- 関連項目:
getPointsAtX()、setPointsAtX(double)
-
pointsAtY
public final DoubleProperty pointsAtYProperty
この光の方向ベクトルのY座標。Min: n/a Max: n/a Default: 0.0 Identity: n/a- デフォルト値:
- 0.0
- 関連項目:
getPointsAtY()、setPointsAtY(double)
-
pointsAtZ
public final DoubleProperty pointsAtZProperty
この光の方向ベクトルのZ座標。Min: n/a Max: n/a Default: 0.0 Identity: n/a- デフォルト値:
- 0.0
- 関連項目:
getPointsAtZ()、setPointsAtZ(double)
-
specularExponent
public final DoubleProperty specularExponentProperty
この光源の焦点を制御する鏡面指数。Min: 0.0 Max: 4.0 Default: 1.0 Identity: 1.0- デフォルト値:
- 1.0
- 関連項目:
getSpecularExponent()、setSpecularExponent(double)
-
-
コンストラクタの詳細
-
Spot
public Spot()
デフォルトのパラメータでスポット・ライトの新しいインスタンスを作成します。
-
Spot
public Spot(double x, double y, double z, double specularExponent, Color color)指定されたx、y、z、鏡面指数および色を使用して、スポット光の新しいインスタンスを作成します。- パラメータ:
x- 光の位置のX座標y- 光の位置のY座標z- 光の位置のZ座標specularExponent- 光源の焦点を制御する鏡面指数color- 光の色- 導入されたバージョン:
- JavaFX 2.1
-
-
メソッドの詳細
-
setPointsAtX
public final void setPointsAtX(double value)
プロパティpointsAtXの値を設定します。- プロパティの説明:
- この光の方向ベクトルのX座標。
Min: n/a Max: n/a Default: 0.0 Identity: n/a - デフォルト値:
- 0.0
-
getPointsAtX
public final double getPointsAtX()
プロパティpointsAtXの値を取得します。- プロパティの説明:
- この光の方向ベクトルのX座標。
Min: n/a Max: n/a Default: 0.0 Identity: n/a - デフォルト値:
- 0.0
-
pointsAtXProperty
public final DoubleProperty pointsAtXProperty()
この光の方向ベクトルのX座標。Min: n/a Max: n/a Default: 0.0 Identity: n/a- デフォルト値:
- 0.0
- 関連項目:
getPointsAtX()、setPointsAtX(double)
-
setPointsAtY
public final void setPointsAtY(double value)
プロパティpointsAtYの値を設定します。- プロパティの説明:
- この光の方向ベクトルのY座標。
Min: n/a Max: n/a Default: 0.0 Identity: n/a - デフォルト値:
- 0.0
-
getPointsAtY
public final double getPointsAtY()
プロパティpointsAtYの値を取得します。- プロパティの説明:
- この光の方向ベクトルのY座標。
Min: n/a Max: n/a Default: 0.0 Identity: n/a - デフォルト値:
- 0.0
-
pointsAtYProperty
public final DoubleProperty pointsAtYProperty()
この光の方向ベクトルのY座標。Min: n/a Max: n/a Default: 0.0 Identity: n/a- デフォルト値:
- 0.0
- 関連項目:
getPointsAtY()、setPointsAtY(double)
-
setPointsAtZ
public final void setPointsAtZ(double value)
プロパティpointsAtZの値を設定します。- プロパティの説明:
- この光の方向ベクトルのZ座標。
Min: n/a Max: n/a Default: 0.0 Identity: n/a - デフォルト値:
- 0.0
-
getPointsAtZ
public final double getPointsAtZ()
プロパティpointsAtZの値を取得します。- プロパティの説明:
- この光の方向ベクトルのZ座標。
Min: n/a Max: n/a Default: 0.0 Identity: n/a - デフォルト値:
- 0.0
-
pointsAtZProperty
public final DoubleProperty pointsAtZProperty()
この光の方向ベクトルのZ座標。Min: n/a Max: n/a Default: 0.0 Identity: n/a- デフォルト値:
- 0.0
- 関連項目:
getPointsAtZ()、setPointsAtZ(double)
-
setSpecularExponent
public final void setSpecularExponent(double value)
プロパティspecularExponentの値を設定します。- プロパティの説明:
- この光源の焦点を制御する鏡面指数。
Min: 0.0 Max: 4.0 Default: 1.0 Identity: 1.0 - デフォルト値:
- 1.0
-
getSpecularExponent
public final double getSpecularExponent()
プロパティspecularExponentの値を取得します。- プロパティの説明:
- この光源の焦点を制御する鏡面指数。
Min: 0.0 Max: 4.0 Default: 1.0 Identity: 1.0 - デフォルト値:
- 1.0
-
specularExponentProperty
public final DoubleProperty specularExponentProperty()
この光源の焦点を制御する鏡面指数。Min: 0.0 Max: 4.0 Default: 1.0 Identity: 1.0- デフォルト値:
- 1.0
- 関連項目:
getSpecularExponent()、setSpecularExponent(double)
-
-