JavaFX Shadow Effect
As its name suggests, this effect creates the shadow of the node by duplicating the node and making its edges blur. The class named as javafx.scene.effect.Shadow represents the shadow effect. We just need to instantiate this class to generate an appropriate shadow effect.
The properties of the class along with the setter methods are described in the following table.
||This is a blur type property. This represents the algorithm which is used to blur the shadow.
||This is of color type property. It represents the shadow color.
||It represents the vertical size of the shadow blur.
||It represents the input for this effect.
||It represents the radius of the shadow.
||It represents the horizontal size of the shadow blur.
The class contains three constructors.
- public Shadow() : Creates a new instance with the default parameters
- public Shadow(double radius, Color color) : Creates a new instance with the specified radius and color.
- public Shadow(BlurType blurtype, Color color, double radius) : Creates a new instance with the specified radius, color and blur type.