Class DropShadow

java.lang.Object
javafx.scene.effect.DropShadow
All Implemented Interfaces:
Effect

public class DropShadow extends Object implements Effect
Author:
Bruno Salmon
  • Constructor Details

    • DropShadow

      public DropShadow()
      Creates a new instance of DropShadow with default parameters.
    • DropShadow

      public DropShadow(double radius, Color color)
      Creates a new instance of DropShadow with specified radius and color.
      Parameters:
      radius - the radius of the shadow blur kernel
      color - the shadow Color
      Since:
      JavaFX 2.1
    • DropShadow

      public DropShadow(double radius, double offsetX, double offsetY, Color color)
      Creates a new instance of DropShadow with the specified radius, offsetX, offsetY and color.
      Parameters:
      radius - the radius of the shadow blur kernel
      offsetX - the shadow offset in the x direction
      offsetY - the shadow offset in the y direction
      color - the shadow Color
      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 shadow
      color - the shadow Color
      radius - the radius of the shadow blur kernel
      spread - the portion of the radius where the contribution of the source material will be 100%
      offsetX - the shadow offset in the x direction
      offsetY - the shadow offset in the y direction
      Since:
      JavaFX 2.1
  • Method Details

    • getBlurType

      public BlurType getBlurType()
    • setBlurType

      public void setBlurType(BlurType blurType)
    • getColor

      public Color getColor()
    • setColor

      public void setColor(Color color)
    • 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

      public Effect getInput()
    • setInput

      public void setInput(Effect input)