Spec-Zone .ru
спецификации, руководства, описания, API
|
public class Bloom extends Effect
Example:
Bloom bloom = new Bloom();
bloom.setThreshold(0.1);
Rectangle rect = new Rectangle();
rect.setX(10);
rect.setY(10);
rect.setWidth(160);
rect.setHeight(80);
rect.setFill(Color.DARKSLATEBLUE);
Text text = new Text();
text.setText("Bloom!");
text.setFill(Color.ALICEBLUE);
text.setFont(Font.font(null, FontWeight.BOLD, 40));
text.setX(25);
text.setY(65);
text.setEffect(bloom);
The code above produces the following:
Type | Property and Description |
---|---|
ObjectProperty<Effect> |
input
The input for this
Effect . |
DoubleProperty |
threshold
The threshold value controls the minimum luminosity value of
the pixels that will be made to glow.
|
Constructor and Description |
---|
Bloom()
Creates a new instance of Bloom with default parameters.
|
Bloom(double threshold)
Creates a new instance of Bloom with the specified threshold.
|
Modifier and Type | Method and Description |
---|---|
Effect |
getInput()
Gets the value of the property input.
|
double |
getThreshold()
Gets the value of the property threshold.
|
ObjectProperty<Effect> |
inputProperty()
The input for this
Effect . |
void |
setInput(Effect value)
Sets the value of the property input.
|
void |
setThreshold(double value)
Sets the value of the property threshold.
|
DoubleProperty |
thresholdProperty()
The threshold value controls the minimum luminosity value of
the pixels that will be made to glow.
|
public final ObjectProperty<Effect> inputProperty
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.getInput()
,
setInput(Effect)
public final DoubleProperty thresholdProperty
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
getThreshold()
,
setThreshold(double)
public Bloom()
public Bloom(double threshold)
threshold
- the threshold value for the bloom effectpublic final void setInput(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 getInput()
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> inputProperty()
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.getInput()
,
setInput(Effect)
public final void setThreshold(double value)
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
public final double getThreshold()
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
public final DoubleProperty thresholdProperty()
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
getThreshold()
,
setThreshold(double)
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to