Class Shadow

    • Field Detail

      • NONE

        public static Shadow NONE
        No shadow at all
    • Constructor Detail

      • Shadow

        public Shadow()
    • Method Detail

      • getColor

        public Color getColor()
        Returns the color of the shadow

        Default: black

      • setColor

        public void setColor​(Color color)
        Sets the color of the shadow
      • setColor

        public void setColor​(String color)
        Sets the color of the shadow
      • setColor

        public void setColor​(LinearGradient color)
        Sets the color of the shadow
      • setColor

        public void setColor​(RadialGradient color)
        Sets the color of the shadow
      • setOffsetX

        public void setOffsetX​(int offsetX)
        Sets the offset X of the shadow
      • getOffsetX

        public Number getOffsetX()
        Returns the offset X of the shadow

        Default: 1

      • setOffsetY

        public void setOffsetY​(Number offsetY)
        Sets the offset Y of the shadow
      • getOffsetY

        public Number getOffsetY()
        Returns the offset Y of the shadow

        Default: 1

      • setOpacity

        public void setOpacity​(Number opacity)
        Sets the opacity of the shadow
        Parameters:
        opacity -
      • getOpacity

        public Number getOpacity()
        Returns the opacity of the shadow.

        Default: 0.15 / getWidth()

      • setWidth

        public void setWidth​(Number width)
        Sets the width of the shadow
      • getWidth

        public Number getWidth()
        Returns the width of the shadow

        Default: 3