java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.shared.ShadowStyle
All Implemented Interfaces:
HasShadow<ShadowStyle>, Serializable

public class ShadowStyle extends ChartObservableObject implements HasShadow<ShadowStyle>
Common style for shadow.
See Also:
  • Field Details

    • color

      protected Color color
    • shadowBlur

      protected Integer shadowBlur
    • shadowColor

      protected Color shadowColor
    • shadowOffsetX

      protected Integer shadowOffsetX
    • shadowOffsetY

      protected Integer shadowOffsetY
    • opacity

      protected Double opacity
  • Constructor Details

    • ShadowStyle

      public ShadowStyle()
  • Method Details

    • getColor

      public @Nullable Color getColor()
    • setColor

      public void setColor(Color color)
    • getShadowBlur

      public @Nullable Integer getShadowBlur()
      Specified by:
      getShadowBlur in interface HasShadow<ShadowStyle>
      Returns:
      depth of shadow blur
    • setShadowBlur

      public void setShadowBlur(Integer shadowBlur)
      Description copied from interface: HasShadow
      Sets depth of shadow blur or replaces an existing one.
      Specified by:
      setShadowBlur in interface HasShadow<ShadowStyle>
      Parameters:
      shadowBlur - depth of shadow blur
    • getShadowColor

      public @Nullable Color getShadowColor()
      Specified by:
      getShadowColor in interface HasShadow<ShadowStyle>
      Returns:
      shadow color
    • setShadowColor

      public void setShadowColor(Color shadowColor)
      Description copied from interface: HasShadow
      Sets a color for shadow or replaces an existing one.
      Specified by:
      setShadowColor in interface HasShadow<ShadowStyle>
      Parameters:
      shadowColor - color to set
    • getShadowOffsetX

      public @Nullable Integer getShadowOffsetX()
      Specified by:
      getShadowOffsetX in interface HasShadow<ShadowStyle>
      Returns:
      horizontal offset for shadow in pixels
    • setShadowOffsetX

      public void setShadowOffsetX(Integer shadowOffsetX)
      Description copied from interface: HasShadow
      Sets horizontal offset for shadow or replaces an existing one.
      Specified by:
      setShadowOffsetX in interface HasShadow<ShadowStyle>
      Parameters:
      shadowOffsetX - offset to set in pixels
    • getShadowOffsetY

      public @Nullable Integer getShadowOffsetY()
      Specified by:
      getShadowOffsetY in interface HasShadow<ShadowStyle>
      Returns:
      vertical offset for shadow in pixels
    • setShadowOffsetY

      public void setShadowOffsetY(Integer shadowOffsetY)
      Description copied from interface: HasShadow
      Sets vertical offset for shadow or replaces an existing one.
      Specified by:
      setShadowOffsetY in interface HasShadow<ShadowStyle>
      Parameters:
      shadowOffsetY - offset to set in pixels
    • getOpacity

      public @Nullable Double getOpacity()
    • setOpacity

      public void setOpacity(Double opacity)
    • withColor

      public ShadowStyle withColor(Color color)
    • withOpacity

      public ShadowStyle withOpacity(Double opacity)