Spec-Zone .ru
спецификации, руководства, описания, API
|
public static class Light.Point extends Light
import javafx.scene.*; import javafx.scene.effect.*; import javafx.scene.paint.*; import javafx.scene.shape.*; import javafx.scene.text.*; import javafx.geometry.*; Light.Point light = new Light.Point(); light.setX(-100); light.setY(-100); light.setZ(50); Lighting l = new Lighting(); l.setLight(light); l.setSurfaceScale(5.0); Text t = new Text(); t.setText("Point"); 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 |
x
The x coordinate of the light position.
|
DoubleProperty |
y
The y coordinate of the light position.
|
DoubleProperty |
z
The z coordinate of the light position.
|
colorProperty
Light.Distant, Light.Point, Light.Spot
Constructor and Description |
---|
Light.Point() |
Modifier and Type | Method and Description |
---|---|
double |
getX()
The x coordinate of the light position.
|
double |
getY()
The y coordinate of the light position.
|
double |
getZ()
The z coordinate of the light position.
|
void |
setX(double value)
The x coordinate of the light position.
|
void |
setY(double value)
The y coordinate of the light position.
|
void |
setZ(double value)
The z coordinate of the light position.
|
DoubleProperty |
xProperty()
The x coordinate of the light position.
|
DoubleProperty |
yProperty()
The y coordinate of the light position.
|
DoubleProperty |
zProperty()
The z coordinate of the light position.
|
colorProperty, getColor, setColor
Min: n/a Max: n/a Default: 0.0 Identity: n/a
getX()
,
setX(double)
Min: n/a Max: n/a Default: 0.0 Identity: n/a
getY()
,
setY(double)
Min: n/a Max: n/a Default: 0.0 Identity: n/a
getZ()
,
setZ(double)
public final void setX(double value)
Min: n/a Max: n/a Default: 0.0 Identity: n/a
public final double getX()
Min: n/a Max: n/a Default: 0.0 Identity: n/a
public final DoubleProperty xProperty()
Min: n/a Max: n/a Default: 0.0 Identity: n/a
getX()
,
setX(double)
public final void setY(double value)
Min: n/a Max: n/a Default: 0.0 Identity: n/a
public final double getY()
Min: n/a Max: n/a Default: 0.0 Identity: n/a
public final DoubleProperty yProperty()
Min: n/a Max: n/a Default: 0.0 Identity: n/a
getY()
,
setY(double)
public final void setZ(double value)
Min: n/a Max: n/a Default: 0.0 Identity: n/a
public final double getZ()
Min: n/a Max: n/a Default: 0.0 Identity: n/a
public final DoubleProperty zProperty()
Min: n/a Max: n/a Default: 0.0 Identity: n/a
getZ()
,
setZ(double)
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to