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 |
---|---|
ObjectProperty<Effect> |
input
The input for this
Effect . |
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 |
---|---|
Effect |
getInput()
Gets the value of the property input.
|
double |
getRadius()
Gets the value of the property radius.
|
ObjectProperty<Effect> |
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.
|
public final ObjectProperty<Effect> 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)
public GaussianBlur()
public GaussianBlur(double radius)
radius
- the radius of the blur kernelpublic final void setInput(Effect value)
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.public final Effect getInput()
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.public final ObjectProperty<Effect> 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 void setRadius(double value)
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
public final double getRadius()
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
public final DoubleProperty radiusProperty()
Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
getRadius()
,
setRadius(double)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.