Class EChartsLineStyle

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

public class EChartsLineStyle extends Object implements com.oorian.json.Jsonable
Represents the line style configuration for ECharts chart elements. This includes properties for color, width, type, and opacity of lines.
Author:
Oorian
  • Constructor Details

    • EChartsLineStyle

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

    • setColor

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

      public void setWidth(Integer width)
      Sets the line width in pixels.
      Parameters:
      width - The line width.
    • setType

      public void setType(String type)
      Sets the line type.
      Parameters:
      type - The line type (e.g., "solid", "dashed", "dotted").
    • setOpacity

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

      public String getColor()
      Returns the line color.
      Returns:
      The color value.
    • getWidth

      public Integer getWidth()
      Returns the line width in pixels.
      Returns:
      The line width.
    • getType

      public String getType()
      Returns the line type.
      Returns:
      The line type.
    • getOpacity

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

      public void initFromJson(com.oorian.json.JsonValue json)
      Initializes this EChartsLineStyle 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 EChartsLineStyle to a JSON value.
      Specified by:
      toJsonValue in interface com.oorian.json.Jsonable
      Returns:
      The JSON representation of this EChartsLineStyle.
    • toJsonString

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