Class EChartsAreaStyle

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

public class EChartsAreaStyle extends Object implements com.oorian.json.Jsonable
Represents the area style configuration for ECharts series. Controls the fill color and opacity of areas in area charts, radar charts, etc.
Author:
Oorian
  • Constructor Details

    • EChartsAreaStyle

      public EChartsAreaStyle()
      Constructs a new EChartsAreaStyle with an empty color list.
  • Method Details

    • setColor

      public void setColor(List<String> color)
      Sets the color list for the area fill.
      Parameters:
      color - the list of colors to use for the area fill
    • setOpacity

      public void setOpacity(Number opacity)
      Sets the opacity of the area fill.
      Parameters:
      opacity - the opacity value (0-1)
    • getColor

      public List<String> getColor()
      Gets the color list for the area fill.
      Returns:
      the list of colors
    • getOpacity

      public Number getOpacity()
      Gets the opacity of the area fill.
      Returns:
      the opacity value
    • addColor

      public void addColor(String color)
      Adds a color to the area fill color list.
      Parameters:
      color - the color to add
    • initFromJson

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

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

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