Spec-Zone .ru
спецификации, руководства, описания, API
|
public class MotionBlur extends Effect
Example:
MotionBlur motionBlur = new MotionBlur();
motionBlur.setRadius(30);
motionBlur.setAngle(-15.0);
Text text = new Text();
text.setX(20.0);
text.setY(100.0);
text.setText("Motion!");
text.setFill(Color.web("0x3b596d"));
text.setFont(Font.font(null, FontWeight.BOLD, 60));
text.setEffect(motionBlur);
The code above produces the following:
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()
Creates a new instance of MotionBlur with default parameters.
|
MotionBlur(double angle,
double radius)
Creates a new instance of MotionBlur with the specified angle and radius.
|
Modifier and Type | Method and Description |
---|---|
DoubleProperty |
angleProperty()
The angle of the motion effect, in degrees.
|
double |
getAngle()
Gets the value of the property angle.
|
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 |
setAngle(double value)
Sets the value of the property angle.
|
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 final DoubleProperty angleProperty
Min: n/a Max: n/a Default: 0.0 Identity: n/a
getAngle()
,
setAngle(double)
public MotionBlur()
public MotionBlur(double angle, double radius)
angle
- the angle of the motion effect, in degreesradius
- 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)
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, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to