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:
Type | Property and Description |
---|---|
<any> |
input
The input for this
Effect . |
DoubleProperty |
radius
The radius of the blur kernel.
|
Effect.EffectInputChangeListener, Effect.EffectInputProperty
Modifier and Type | Field and Description |
---|---|
private <any> |
input
The input for this
Effect . |
private DoubleProperty |
radius
The radius of the blur kernel.
|
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 |
---|---|
(package private) boolean |
checkChainContains(Effect e) |
(package private) Effect |
copy() |
(package private) com.sun.scenario.effect.GaussianBlur |
createPeer() |
(package private) BaseBounds |
getBounds(BaseBounds bounds,
BaseTransform tx,
Node node,
BoundsAccessor boundsAccessor)
Returns bounds of given node with applied effect.
|
private float |
getClampedRadius() |
Effect |
getInput()
Gets the value of the property input.
|
double |
getRadius()
Gets the value of the property radius.
|
<any> |
inputProperty()
The input for this
Effect . |
DoubleProperty |
radiusProperty()
The radius of the blur kernel.
|
void |
setInput(Effect value)
Sets the value of the property input.
|
void |
setRadius(double value)
Sets the value of the property radius.
|
(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 radiusProperty
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
getRadius()
,
setRadius(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 radius
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
public GaussianBlur()
public GaussianBlur(double radius)
radius
- the radius of the blur kernelcom.sun.scenario.effect.GaussianBlur 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 setRadius(double value)
public final double getRadius()
public final DoubleProperty radiusProperty()
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
getRadius()
,
setRadius(double)
private float getClampedRadius()
BaseBounds getBounds(BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor)
Effect