Spec-Zone .ru
спецификации, руководства, описания, API
|
public static class Light.Distant 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.Distant light = new Light.Distant(); light.setAzimuth(-135.0); light.setElevation(30.0); Lighting l = new Lighting(); l.setLight(light); l.setSurfaceScale(5.0); final Text t = new Text(); t.setText("Distant"); t.setFill(Color.RED); t.setFont(Font.font("null", FontWeight.BOLD, 90)); t.setX(10.0f); t.setY(10.0f); t.setTextOrigin(VPos.TOP); t.setEffect(l); final 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 |
azimuth
The azimuth of the light.
|
DoubleProperty |
elevation
The elevation of the light.
|
colorProperty
Light.Distant, Light.Point, Light.Spot
Constructor and Description |
---|
Light.Distant() |
Modifier and Type | Method and Description |
---|---|
DoubleProperty |
azimuthProperty()
The azimuth of the light.
|
DoubleProperty |
elevationProperty()
The elevation of the light.
|
double |
getAzimuth()
The azimuth of the light.
|
double |
getElevation()
The elevation of the light.
|
void |
setAzimuth(double value)
The azimuth of the light.
|
void |
setElevation(double value)
The elevation of the light.
|
colorProperty, getColor, setColor
Min: n/a Max: n/a Default: 45.0 Identity: n/a
getAzimuth()
,
setAzimuth(double)
Min: n/a Max: n/a Default: 45.0 Identity: n/a
getElevation()
,
setElevation(double)
public final void setAzimuth(double value)
Min: n/a Max: n/a Default: 45.0 Identity: n/a
public final double getAzimuth()
Min: n/a Max: n/a Default: 45.0 Identity: n/a
public final DoubleProperty azimuthProperty()
Min: n/a Max: n/a Default: 45.0 Identity: n/a
getAzimuth()
,
setAzimuth(double)
public final void setElevation(double value)
Min: n/a Max: n/a Default: 45.0 Identity: n/a
public final double getElevation()
Min: n/a Max: n/a Default: 45.0 Identity: n/a
public final DoubleProperty elevationProperty()
Min: n/a Max: n/a Default: 45.0 Identity: n/a
getElevation()
,
setElevation(double)
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to