Class Shadow

All Implemented Interfaces:
HasHandlers

public class Shadow extends DataClass
A class used to define a shadow used in a Draw<Shape> Types.
  • Constructor Details

  • Method Details

    • getOrCreateRef

      public static Shadow getOrCreateRef(JavaScriptObject jsObj)
    • setBlur

      public Shadow setBlur(int blur)
      Parameters:
      blur - New blur value. Default value is 10
      Returns:
      Shadow instance, for chaining setter calls
    • getBlur

      public int getBlur()
      Returns:
      Current blur value. Default value is 10
    • setColor

      public Shadow setColor(String color)
      Parameters:
      color - New color value. Default value is black
      Returns:
      Shadow instance, for chaining setter calls
      See Also:
    • getColor

      public String getColor()
      Returns:
      Current color value. Default value is black
      See Also:
    • setOffset

      public Shadow setOffset(Point offset)
      Parameters:
      offset - New offset value. Default value is [0,0]
      Returns:
      Shadow instance, for chaining setter calls
    • getOffset

      public Point getOffset()
      Returns:
      Current offset value. Default value is [0,0]