Spec-Zone .ru
спецификации, руководства, описания, API
|
public class Lighting extends Effect
import javafx.scene.*; import javafx.scene.text.*; import javafx.scene.paint.*; import javafx.scene.effect.*; import javafx.geometry.*; Light.Distant light = new Light.Distant(); light.setAzimuth(-135.0); Lighting l = new Lighting(); l.setLight(light); l.setSurfaceScale(5.0); Text t = new Text(); t.setText("JavaFX!"); 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);
Type | Property and Description |
---|---|
ObjectProperty<Effect> |
bumpInput
The optional bump map input.
|
ObjectProperty<Effect> |
contentInput
The content input for this
Effect . |
DoubleProperty |
diffuseConstant
The diffuse constant.
|
ObjectProperty<Light> |
light
The light source for this
Lighting effect. |
DoubleProperty |
specularConstant
The specular constant.
|
DoubleProperty |
specularExponent
The specular exponent.
|
DoubleProperty |
surfaceScale
The surface scale factor.
|
Constructor and Description |
---|
Lighting()
Creates a new instance of Lighting with default parameters.
|
Modifier and Type | Method and Description |
---|---|
ObjectProperty<Effect> |
bumpInputProperty()
The optional bump map input.
|
ObjectProperty<Effect> |
contentInputProperty()
The content input for this
Effect . |
DoubleProperty |
diffuseConstantProperty()
The diffuse constant.
|
Effect |
getBumpInput()
The optional bump map input.
|
Effect |
getContentInput()
The content input for this
Effect . |
double |
getDiffuseConstant()
The diffuse constant.
|
Light |
getLight()
The light source for this
Lighting effect. |
double |
getSpecularConstant()
The specular constant.
|
double |
getSpecularExponent()
The specular exponent.
|
double |
getSurfaceScale()
The surface scale factor.
|
ObjectProperty<Light> |
lightProperty()
The light source for this
Lighting effect. |
void |
setBumpInput(Effect value)
The optional bump map input.
|
void |
setContentInput(Effect value)
The content input for this
Effect . |
void |
setDiffuseConstant(double value)
The diffuse constant.
|
void |
setLight(Light value)
The light source for this
Lighting effect. |
void |
setSpecularConstant(double value)
The specular constant.
|
void |
setSpecularExponent(double value)
The specular exponent.
|
void |
setSurfaceScale(double value)
The surface scale factor.
|
DoubleProperty |
specularConstantProperty()
The specular constant.
|
DoubleProperty |
specularExponentProperty()
The specular exponent.
|
DoubleProperty |
surfaceScaleProperty()
The surface scale factor.
|
Lighting
effect.getLight()
,
setLight(Light)
null
, or left unspecified, a graphical image of
the Node
to which the Effect
is attached will be
used to generate a default bump map.getBumpInput()
,
setBumpInput(Effect)
Effect
.
If set to null
, or left unspecified, a graphical image of
the Node
to which the Effect
is attached will be
used as the input.getContentInput()
,
setContentInput(Effect)
Min: 0.0 Max: 2.0 Default: 1.0 Identity: n/a
Min: 0.0 Max: 2.0 Default: 0.3 Identity: n/a
Min: 0.0 Max: 40.0 Default: 20.0 Identity: n/a
Min: 0.0 Max: 10.0 Default: 1.5 Identity: n/a
getSurfaceScale()
,
setSurfaceScale(double)
public Lighting()
public final void setLight(Light value)
Lighting
effect.public final Light getLight()
Lighting
effect.public final ObjectProperty<Light> lightProperty()
Lighting
effect.getLight()
,
setLight(Light)
public final void setBumpInput(Effect value)
null
, or left unspecified, a graphical image of
the Node
to which the Effect
is attached will be
used to generate a default bump map.public final Effect getBumpInput()
null
, or left unspecified, a graphical image of
the Node
to which the Effect
is attached will be
used to generate a default bump map.public final ObjectProperty<Effect> bumpInputProperty()
null
, or left unspecified, a graphical image of
the Node
to which the Effect
is attached will be
used to generate a default bump map.getBumpInput()
,
setBumpInput(Effect)
public final void setContentInput(Effect value)
Effect
.
If set to null
, or left unspecified, a graphical image of
the Node
to which the Effect
is attached will be
used as the input.public final Effect getContentInput()
Effect
.
If set to null
, or left unspecified, a graphical image of
the Node
to which the Effect
is attached will be
used as the input.public final ObjectProperty<Effect> contentInputProperty()
Effect
.
If set to null
, or left unspecified, a graphical image of
the Node
to which the Effect
is attached will be
used as the input.getContentInput()
,
setContentInput(Effect)
public final void setDiffuseConstant(double value)
Min: 0.0 Max: 2.0 Default: 1.0 Identity: n/a
public final double getDiffuseConstant()
Min: 0.0 Max: 2.0 Default: 1.0 Identity: n/a
public final DoubleProperty diffuseConstantProperty()
Min: 0.0 Max: 2.0 Default: 1.0 Identity: n/a
public final void setSpecularConstant(double value)
Min: 0.0 Max: 2.0 Default: 0.3 Identity: n/a
public final double getSpecularConstant()
Min: 0.0 Max: 2.0 Default: 0.3 Identity: n/a
public final DoubleProperty specularConstantProperty()
Min: 0.0 Max: 2.0 Default: 0.3 Identity: n/a
public final void setSpecularExponent(double value)
Min: 0.0 Max: 40.0 Default: 20.0 Identity: n/a
public final double getSpecularExponent()
Min: 0.0 Max: 40.0 Default: 20.0 Identity: n/a
public final DoubleProperty specularExponentProperty()
Min: 0.0 Max: 40.0 Default: 20.0 Identity: n/a
public final void setSurfaceScale(double value)
Min: 0.0 Max: 10.0 Default: 1.5 Identity: n/a
public final double getSurfaceScale()
Min: 0.0 Max: 10.0 Default: 1.5 Identity: n/a
public final DoubleProperty surfaceScaleProperty()
Min: 0.0 Max: 10.0 Default: 1.5 Identity: n/a
getSurfaceScale()
,
setSurfaceScale(double)
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to