Class MotionBlur
java.lang.Object
javafx.scene.effect.Effect
javafx.scene.effect.MotionBlur
A motion blur effect using a Gaussian convolution kernel, with a
 configurable radius and angle.
 
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:
  
 
- Since:
- JavaFX 2.0
- 
Property SummaryPropertiesTypePropertyDescriptionfinal DoublePropertyThe angle of the motion effect, in degrees.final ObjectProperty<Effect> The input for thisEffect.final DoublePropertyThe radius of the blur kernel.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates 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.
- 
Method SummaryModifier and TypeMethodDescriptionfinal DoublePropertyThe angle of the motion effect, in degrees.final doublegetAngle()Gets the value of theangleproperty.final EffectgetInput()Gets the value of theinputproperty.final doubleGets the value of theradiusproperty.final ObjectProperty<Effect> The input for thisEffect.final DoublePropertyThe radius of the blur kernel.final voidsetAngle(double value) Sets the value of theangleproperty.final voidSets the value of theinputproperty.final voidsetRadius(double value) Sets the value of theradiusproperty.
- 
Property Details- 
inputThe input for thisEffect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.- Default value:
- null
- See Also:
 
- 
radiusThe radius of the blur kernel.Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0- Default value:
- 10.0
- See Also:
 
- 
angleThe angle of the motion effect, in degrees.Min: n/a Max: n/a Default: 0.0 Identity: n/a- Default value:
- 0.0
- See Also:
 
 
- 
- 
Constructor Details- 
MotionBlurpublic MotionBlur()Creates a new instance of MotionBlur with default parameters.
- 
MotionBlurpublic MotionBlur(double angle, double radius) Creates a new instance of MotionBlur with the specified angle and radius.- Parameters:
- angle- the angle of the motion effect, in degrees
- radius- the radius of the blur kernel
- Since:
- JavaFX 2.1
 
 
- 
- 
Method Details- 
setInputSets the value of theinputproperty.- Property description:
- The input for this Effect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.
- Default value:
- null
- Parameters:
- value- the value for the- inputproperty
- See Also:
 
- 
getInputGets the value of theinputproperty.- Property description:
- The input for this Effect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.
- Default value:
- null
- Returns:
- the value of the inputproperty
- See Also:
 
- 
inputPropertyThe input for thisEffect. If set tonull, or left unspecified, a graphical image of theNodeto which theEffectis attached will be used as the input.- Default value:
- null
- Returns:
- the inputproperty
- See Also:
 
- 
setRadiuspublic final void setRadius(double value) Sets the value of theradiusproperty.- Property description:
- The radius of the blur kernel.
 Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
- Default value:
- 10.0
- Parameters:
- value- the value for the- radiusproperty
- See Also:
 
- 
getRadiuspublic final double getRadius()Gets the value of theradiusproperty.- Property description:
- The radius of the blur kernel.
 Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0
- Default value:
- 10.0
- Returns:
- the value of the radiusproperty
- See Also:
 
- 
radiusPropertyThe radius of the blur kernel.Min: 0.0 Max: 63.0 Default: 10.0 Identity: 0.0- Default value:
- 10.0
- Returns:
- the radiusproperty
- See Also:
 
- 
setAnglepublic final void setAngle(double value) Sets the value of theangleproperty.- Property description:
- The angle of the motion effect, in degrees.
 Min: n/a Max: n/a Default: 0.0 Identity: n/a
- Default value:
- 0.0
- Parameters:
- value- the value for the- angleproperty
- See Also:
 
- 
getAnglepublic final double getAngle()Gets the value of theangleproperty.- Property description:
- The angle of the motion effect, in degrees.
 Min: n/a Max: n/a Default: 0.0 Identity: n/a
- Default value:
- 0.0
- Returns:
- the value of the angleproperty
- See Also:
 
- 
anglePropertyThe angle of the motion effect, in degrees.Min: n/a Max: n/a Default: 0.0 Identity: n/a- Default value:
- 0.0
- Returns:
- the angleproperty
- See Also:
 
 
-