public class BoxBlur extends Effect
Example:
BoxBlur boxBlur = new BoxBlur();
boxBlur.setWidth(10);
boxBlur.setHeight(3);
boxBlur.setIterations(3);
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(boxBlur);
The code above produces the following:
Constructor and Description |
---|
BoxBlur()
Creates a new instance of BoxBlur with default parameters.
|
BoxBlur(double width,
double height,
int iterations)
Creates a new instance of BoxBlur with specified width, height and
iterations.
|
Modifier and Type | Method and Description |
---|---|
double |
getHeight() |
Effect |
getInput() |
int |
getIterations() |
double |
getWidth() |
DoubleProperty |
heightProperty() |
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() |
IntegerProperty |
iterationsProperty() |
void |
setHeight(double value) |
void |
setInput(Effect value) |
void |
setIterations(int value) |
void |
setWidth(double value) |
DoubleProperty |
widthProperty() |
impl_effectDirtyProperty, impl_getImpl, impl_isEffectDirty, impl_sync
public BoxBlur()
public BoxBlur(double width, double height, int iterations)
width
- the horizontal dimension of the blur effectheight
- the vertical dimension of the blur effectiterations
- the number of times to iterate the blur effect to
improve its "quality" or "smoothness"public final void setInput(Effect value)
public final Effect getInput()
public final ObjectProperty<Effect> inputProperty()
public final void setWidth(double value)
public final double getWidth()
public final DoubleProperty widthProperty()
public final void setHeight(double value)
public final double getHeight()
public final DoubleProperty heightProperty()
public final void setIterations(int value)
public final int getIterations()
public final IntegerProperty iterationsProperty()
@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.