Package javafx.scene.effect
Class DropShadow
java.lang.Object
javafx.scene.effect.DropShadow
- All Implemented Interfaces:
Effect
- Author:
- Bruno Salmon
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of DropShadow with default parameters.DropShadow(double radius, double offsetX, double offsetY, Color color) Creates a new instance of DropShadow with the specified radius, offsetX, offsetY and color.DropShadow(double radius, Color color) Creates a new instance of DropShadow with specified radius and color.DropShadow(BlurType blurType, Color color, double radius, double spread, double offsetX, double offsetY) Creates a new instance of DropShadow with the specified blurType, color, radius, spread, offsetX and offsetY. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()getInput()doubledoubledoubledoublevoidsetBlurType(BlurType blurType) voidvoidvoidsetOffsetX(double offsetX) voidsetOffsetY(double offsetY) voidsetRadius(double radius) voidsetSpread(double spread)
-
Constructor Details
-
DropShadow
public DropShadow()Creates a new instance of DropShadow with default parameters. -
DropShadow
Creates a new instance of DropShadow with specified radius and color.- Parameters:
radius- the radius of the shadow blur kernelcolor- the shadowColor- Since:
- JavaFX 2.1
-
DropShadow
Creates a new instance of DropShadow with the specified radius, offsetX, offsetY and color.- Parameters:
radius- the radius of the shadow blur kerneloffsetX- the shadow offset in the x directionoffsetY- the shadow offset in the y directioncolor- the shadowColor- Since:
- JavaFX 2.1
-
DropShadow
public DropShadow(BlurType blurType, Color color, double radius, double spread, double offsetX, double offsetY) Creates a new instance of DropShadow with the specified blurType, color, radius, spread, offsetX and offsetY.- Parameters:
blurType- the algorithm used to blur the shadowcolor- the shadowColorradius- the radius of the shadow blur kernelspread- the portion of the radius where the contribution of the source material will be 100%offsetX- the shadow offset in the x directionoffsetY- the shadow offset in the y direction- Since:
- JavaFX 2.1
-
-
Method Details
-
getBlurType
-
setBlurType
-
getColor
-
setColor
-
getRadius
public double getRadius() -
setRadius
public void setRadius(double radius) -
getSpread
public double getSpread() -
setSpread
public void setSpread(double spread) -
getOffsetX
public double getOffsetX() -
setOffsetX
public void setOffsetX(double offsetX) -
getOffsetY
public double getOffsetY() -
setOffsetY
public void setOffsetY(double offsetY) -
getInput
-
setInput
-