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 |
---|---|
<any> |
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.
|
Effect.EffectInputChangeListener, Effect.EffectInputProperty
Modifier and Type | Field and Description |
---|---|
private <any> |
input
The input for this
Effect . |
private 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 |
---|---|
(package private) boolean |
checkChainContains(Effect e) |
(package private) Effect |
copy() |
(package private) com.sun.scenario.effect.Bloom |
createPeer() |
(package private) BaseBounds |
getBounds(BaseBounds bounds,
BaseTransform tx,
Node node,
BoundsAccessor boundsAccessor)
Returns bounds of given node with applied effect.
|
Effect |
getInput()
Gets the value of the property input.
|
double |
getThreshold()
Gets the value of the property threshold.
|
<any> |
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.
|
(package private) void |
update() |
containsCycles, effectBoundsChanged, getInputBounds, getKernelSize, getPeer, getShadowBounds, markDirty, sync, transformBounds
public final <any> 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)
private <any> input
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.private DoubleProperty threshold
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
public Bloom()
public Bloom(double threshold)
threshold
- the threshold value for the bloom effectcom.sun.scenario.effect.Bloom createPeer()
createPeer
in class Effect
public final void setInput(Effect value)
public final Effect getInput()
public final <any> 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)
boolean checkChainContains(Effect e)
checkChainContains
in class Effect
public final void setThreshold(double value)
public final double getThreshold()
public final DoubleProperty thresholdProperty()
Min: 0.0 Max: 1.0 Default: 0.3 Identity: n/a
getThreshold()
,
setThreshold(double)
BaseBounds getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
Effect