public class Glow extends Effect
Example:
Image image = new Image("boat.jpg");
ImageView imageView = new ImageView(image);
imageView.setFitWidth(200);
imageView.setPreserveRatio(true);
imageView.setEffect(new Glow(0.8));
The code above applied on this image:
produces the following:
Effect.EffectInputChangeListener, Effect.EffectInputProperty
Modifier and Type | Field and Description |
---|---|
private ObjectProperty<Effect> |
input
The input for this
Effect . |
private DoubleProperty |
level
The level value, which controls the intensity of the glow effect.
|
Constructor and Description |
---|
Glow()
Creates a new instance of Glow with default parameters.
|
Glow(double level)
Creates a new instance of Glow with specified level.
|
Modifier and Type | Method and Description |
---|---|
Effect |
getInput() |
double |
getLevel() |
(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) Glow |
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() |
DoubleProperty |
levelProperty() |
void |
setInput(Effect value) |
void |
setLevel(double value) |
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 level
Min: 0.0 Max: 1.0 Default: 0.3 Identity: 0.0
public Glow()
public Glow(double level)
level
- the level value, which controls the intensity
of the glow effectGlow 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 setLevel(double value)
public final double getLevel()
public final DoubleProperty levelProperty()
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