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:
Effect.EffectInputChangeListener, Effect.EffectInputProperty
Modifier and Type | Field and Description |
---|---|
private ObjectProperty<Effect> |
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 |
---|---|
Effect |
getInput() |
double |
getThreshold() |
(package private) boolean |
impl_checkChainContains(Effect e) |
Effect |
impl_copy()
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
(package private) Bloom |
impl_createImpl() |
BaseBounds |
impl_getBounds(BaseBounds bounds,
BaseTransform tx,
Node node,
BoundsAccessor boundsAccessor)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
(package private) void |
impl_update() |
ObjectProperty<Effect> |
inputProperty() |
void |
setInput(Effect value) |
void |
setThreshold(double value) |
DoubleProperty |
thresholdProperty() |
effectBoundsChanged, getInputBounds, getKernelSize, getShadowBounds, impl_containsCycles, impl_effectDirtyProperty, impl_getImpl, impl_isEffectDirty, impl_sync, markDirty, transformBounds
private ObjectProperty<Effect> 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 effectBloom impl_createImpl()
impl_createImpl
in class Effect
public final void setInput(Effect value)
public final Effect getInput()
public final ObjectProperty<Effect> inputProperty()
boolean impl_checkChainContains(Effect e)
impl_checkChainContains
in class Effect
public final void setThreshold(double value)
public final double getThreshold()
public final DoubleProperty thresholdProperty()
void impl_update()
impl_update
in class Effect
@Deprecated public BaseBounds impl_getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
Effect
impl_getBounds
in class Effect