|
Spec-Zone .ru
спецификации, руководства, описания, API
|
public class BoxBlur extends Effect
import javafx.scene.*;
import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
Text t = new Text();
t.setText("Blurry Text!");
t.setFill(Color.RED);
t.setFont(Font.font(null, FontWeight.BOLD, 36));
t.setX(10);
t.setY(40);
BoxBlur bb = new BoxBlur();
bb.setWidth(15);
bb.setHeight(15);
bb.setIterations(3);
t.setEffect(bb);
| Type | Property and Description |
|---|---|
DoubleProperty |
height
The vertical dimension of the blur effect.
|
ObjectProperty<Effect> |
input
The input for this
Effect. |
IntegerProperty |
iterations
The number of times to iterate the blur effect to improve its
"quality" or "smoothness".
|
DoubleProperty |
width
The horizontal dimension of the blur effect.
|
| 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()
The vertical dimension of the blur effect.
|
Effect |
getInput()
The input for this
Effect. |
int |
getIterations()
The number of times to iterate the blur effect to improve its
"quality" or "smoothness".
|
double |
getWidth()
The horizontal dimension of the blur effect.
|
DoubleProperty |
heightProperty()
The vertical dimension of the blur effect.
|
ObjectProperty<Effect> |
inputProperty()
The input for this
Effect. |
IntegerProperty |
iterationsProperty()
The number of times to iterate the blur effect to improve its
"quality" or "smoothness".
|
void |
setHeight(double value)
The vertical dimension of the blur effect.
|
void |
setInput(Effect value)
The input for this
Effect. |
void |
setIterations(int value)
The number of times to iterate the blur effect to improve its
"quality" or "smoothness".
|
void |
setWidth(double value)
The horizontal dimension of the blur effect.
|
DoubleProperty |
widthProperty()
The horizontal dimension of the blur effect.
|
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)
Min: 0.0
Max: 255.0
Default: 5.0
Identity: <1.0
getWidth(),
setWidth(double)
Min: 0.0
Max: 255.0
Default: 5.0
Identity: <1.0
getHeight(),
setHeight(double)
Min: 0
Max: 3
Default: 1
Identity: 0
getIterations(),
setIterations(int)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)
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 setWidth(double value)
Min: 0.0
Max: 255.0
Default: 5.0
Identity: <1.0
public final double getWidth()
Min: 0.0
Max: 255.0
Default: 5.0
Identity: <1.0
public final DoubleProperty widthProperty()
Min: 0.0
Max: 255.0
Default: 5.0
Identity: <1.0
getWidth(),
setWidth(double)public final void setHeight(double value)
Min: 0.0
Max: 255.0
Default: 5.0
Identity: <1.0
public final double getHeight()
Min: 0.0
Max: 255.0
Default: 5.0
Identity: <1.0
public final DoubleProperty heightProperty()
Min: 0.0
Max: 255.0
Default: 5.0
Identity: <1.0
getHeight(),
setHeight(double)public final void setIterations(int value)
Min: 0
Max: 3
Default: 1
Identity: 0
public final int getIterations()
Min: 0
Max: 3
Default: 1
Identity: 0
public final IntegerProperty iterationsProperty()
Min: 0
Max: 3
Default: 1
Identity: 0
getIterations(),
setIterations(int)Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to .