Class WShadow

    • Constructor Summary

      Constructors 
      Constructor Description
      WShadow()
      Default constructor.
      WShadow​(double dx, double dy, WColor color, double blur)
      Constructs a shadow with given offset and color.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(WShadow other)
      Indicates whether some other object is "equal to" this one.
      double getBlur()
      Returns the blur.
      WColor getColor()
      Returns the shadow color.
      double getOffsetX()
      Returns the shadow X offset.
      double getOffsetY()
      Returns the shadow Y offset.
      boolean isNone()
      Returns whether the shadow effect is nihil.
      void setBlur​(double blur)
      Sets the blur.
      void setColor​(WColor color)
      Changes the shadow color.
      void setOffsets​(double dx, double dy)
      Sets the shadow offset.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WShadow

        public WShadow()
        Default constructor.

        Constructs a disabled shadow effect (offsetX = offsetY = blur = 0)

      • WShadow

        public WShadow​(double dx,
                       double dy,
                       WColor color,
                       double blur)
        Constructs a shadow with given offset and color.
    • Method Detail

      • equals

        public boolean equals​(WShadow other)
        Indicates whether some other object is "equal to" this one.

        Returns true if the shadows are exactly the same.

      • isNone

        public boolean isNone()
        Returns whether the shadow effect is nihil.
      • setOffsets

        public void setOffsets​(double dx,
                               double dy)
        Sets the shadow offset.
      • setColor

        public void setColor​(WColor color)
        Changes the shadow color.

        See Also:
        getColor()
      • setBlur

        public void setBlur​(double blur)
        Sets the blur.

        See Also:
        getBlur()