public class GaussianBlur extends Effect
Example:
Text text = new Text();
text.setText("Blurry Text!");
text.setFill(Color.web("0x3b596d"));
text.setFont(Font.font(null, FontWeight.BOLD, 50));
text.setX(10);
text.setY(50);
text.setEffect(new GaussianBlur());
The code above produces the following:
Constructor and Description |
---|
GaussianBlur()
Creates a new instance of GaussianBlur with default parameters.
|
GaussianBlur(double radius)
Creates a new instance of GaussianBlur with the specified radius.
|
Modifier and Type | Method and Description |
---|---|
Effect |
getInput() |
double |
getRadius() |
Effect |
impl_copy()
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
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
|
ObjectProperty<Effect> |
inputProperty() |
DoubleProperty |
radiusProperty() |
void |
setInput(Effect value) |
void |
setRadius(double value) |
impl_effectDirtyProperty, impl_getImpl, impl_isEffectDirty, impl_sync
public GaussianBlur()
public GaussianBlur(double radius)
radius
- the radius of the blur kernelpublic final void setInput(Effect value)
public final Effect getInput()
public final ObjectProperty<Effect> inputProperty()
public final void setRadius(double value)
public final double getRadius()
public final DoubleProperty radiusProperty()
@Deprecated public BaseBounds impl_getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
Effect
impl_getBounds
in class Effect
@Deprecated public Effect impl_copy()
Copyright © 2020. All rights reserved.