|
Spec-Zone .ru
спецификации, руководства, описания, API
|
public class MotionBlur extends Effect
import javafx.scene.*;
import javafx.scene.text.*;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
Text t = new Text();
t.setX(20.0);
t.setY(100.0);
t.setText("Motion");
t.setFill(Color.RED);
t.setFont(Font.font(null, FontWeight.BOLD, 60));
MotionBlur mb = new MotionBlur();
mb.setRadius(15.0);
mb.setAngle(-30.0);
t.setEffect(mb);
| Type | Property and Description |
|---|---|
DoubleProperty |
angle
The angle of the motion effect, in degrees.
|
ObjectProperty<Effect> |
input
The input for this
Effect. |
DoubleProperty |
radius
The radius of the blur kernel.
|
| Constructor and Description |
|---|
MotionBlur() |
| Modifier and Type | Method and Description |
|---|---|
DoubleProperty |
angleProperty()
The angle of the motion effect, in degrees.
|
double |
getAngle()
The angle of the motion effect, in degrees.
|
Effect |
getInput()
The input for this
Effect. |
double |
getRadius()
The radius of the blur kernel.
|
ObjectProperty<Effect> |
inputProperty()
The input for this
Effect. |
DoubleProperty |
radiusProperty()
The radius of the blur kernel.
|
void |
setAngle(double value)
The angle of the motion effect, in degrees.
|
void |
setInput(Effect value)
The input for this
Effect. |
void |
setRadius(double value)
The radius of the blur kernel.
|
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: 63.0
Default: 10.0
Identity: 0.0
getRadius(),
setRadius(double)
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
getAngle(),
setAngle(double)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 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)public final void setAngle(double value)
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
public final double getAngle()
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
public final DoubleProperty angleProperty()
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
getAngle(),
setAngle(double)Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to .