Class EChartsItemStyle

java.lang.Object
com.oorian.echarts.options.EChartsItemStyle
All Implemented Interfaces:
com.oorian.json.Jsonable

public class EChartsItemStyle extends Object implements com.oorian.json.Jsonable
Represents the item style configuration for ECharts chart elements. This includes properties for color, border, shadow, and opacity of graphical elements.
Author:
Oorian
  • Constructor Details

    • EChartsItemStyle

      public EChartsItemStyle()
      Creates a new EChartsItemStyle instance with default settings.
  • Method Details

    • setColor

      public void setColor(String color)
      Sets the item color.
      Parameters:
      color - The color value (e.g., "#333", "rgba(0,0,0,0.8)").
    • setBorderColor

      public void setBorderColor(String borderColor)
      Sets the border color.
      Parameters:
      borderColor - The border color value.
    • setBorderWidth

      public void setBorderWidth(Number borderWidth)
      Sets the border width.
      Parameters:
      borderWidth - The border width in pixels.
    • setBorderType

      public void setBorderType(String borderType)
      Sets the border type.
      Parameters:
      borderType - The border type (e.g., "solid", "dashed", "dotted").
    • setBorderRadius

      public void setBorderRadius(Number borderRadius)
      Sets the border radius.
      Parameters:
      borderRadius - The border radius in pixels.
    • setShadowBlur

      public void setShadowBlur(Number shadowBlur)
      Sets the shadow blur amount.
      Parameters:
      shadowBlur - The shadow blur in pixels.
    • setShadowColor

      public void setShadowColor(String shadowColor)
      Sets the shadow color.
      Parameters:
      shadowColor - The shadow color value.
    • setShadowOffsetX

      public void setShadowOffsetX(Number shadowOffsetX)
      Sets the shadow horizontal offset.
      Parameters:
      shadowOffsetX - The shadow X offset in pixels.
    • setShadowOffsetY

      public void setShadowOffsetY(Number shadowOffsetY)
      Sets the shadow vertical offset.
      Parameters:
      shadowOffsetY - The shadow Y offset in pixels.
    • setOpacity

      public void setOpacity(Number opacity)
      Sets the item opacity.
      Parameters:
      opacity - The opacity value (0.0 to 1.0).
    • getColor

      public String getColor()
      Returns the item color.
      Returns:
      The color value.
    • getBorderColor

      public String getBorderColor()
      Returns the border color.
      Returns:
      The border color value.
    • getBorderWidth

      public Number getBorderWidth()
      Returns the border width.
      Returns:
      The border width in pixels.
    • getBorderType

      public String getBorderType()
      Returns the border type.
      Returns:
      The border type.
    • getBorderRadius

      public Number getBorderRadius()
      Returns the border radius.
      Returns:
      The border radius in pixels.
    • getShadowBlur

      public Number getShadowBlur()
      Returns the shadow blur amount.
      Returns:
      The shadow blur in pixels.
    • getShadowColor

      public String getShadowColor()
      Returns the shadow color.
      Returns:
      The shadow color value.
    • getShadowOffsetX

      public Number getShadowOffsetX()
      Returns the shadow horizontal offset.
      Returns:
      The shadow X offset in pixels.
    • getShadowOffsetY

      public Number getShadowOffsetY()
      Returns the shadow vertical offset.
      Returns:
      The shadow Y offset in pixels.
    • getOpacity

      public Number getOpacity()
      Returns the item opacity.
      Returns:
      The opacity value.
    • initFromJson

      public void initFromJson(com.oorian.json.JsonValue json)
      Initializes this EChartsItemStyle from a JSON value.
      Specified by:
      initFromJson in interface com.oorian.json.Jsonable
      Parameters:
      json - The JSON value to initialize from.
    • toJsonValue

      public com.oorian.json.JsonValue toJsonValue()
      Converts this EChartsItemStyle to a JSON value.
      Specified by:
      toJsonValue in interface com.oorian.json.Jsonable
      Returns:
      The JSON representation of this EChartsItemStyle.
    • toJsonString

      public String toJsonString()
      Converts this EChartsItemStyle to a JSON string.
      Specified by:
      toJsonString in interface com.oorian.json.Jsonable
      Returns:
      The JSON string representation of this EChartsItemStyle.