Class EChartsCrossStyle

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

public class EChartsCrossStyle extends Object implements com.oorian.json.Jsonable
Represents the cross style configuration for ECharts tooltip axis pointer. Cross style defines the appearance of cross-type axis pointers.
Author:
Oorian
  • Constructor Details

    • EChartsCrossStyle

      public EChartsCrossStyle()
      Default constructor.
  • Method Details

    • setColor

      public void setColor(String color)
      Sets the color of the cross style.
      Parameters:
      color - the color value
    • setWidth

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

      public void setType(String type)
      Sets the type of the cross style line.
      Parameters:
      type - the line type (e.g., 'solid', 'dashed', 'dotted')
    • setOpacity

      public void setOpacity(Number opacity)
      Sets the opacity of the cross style.
      Parameters:
      opacity - the opacity value (0 to 1)
    • getColor

      public String getColor()
      Gets the color of the cross style.
      Returns:
      the color value
    • getWidth

      public Integer getWidth()
      Gets the width of the cross style line.
      Returns:
      the width in pixels
    • getType

      public String getType()
      Gets the type of the cross style line.
      Returns:
      the line type
    • getOpacity

      public Number getOpacity()
      Gets the opacity of the cross style.
      Returns:
      the opacity value
    • initFromJson

      public void initFromJson(com.oorian.json.JsonValue json)
      Specified by:
      initFromJson in interface com.oorian.json.Jsonable
    • toJsonValue

      public com.oorian.json.JsonValue toJsonValue()
      Specified by:
      toJsonValue in interface com.oorian.json.Jsonable
    • toJsonString

      public String toJsonString()
      Specified by:
      toJsonString in interface com.oorian.json.Jsonable