Class EChartsAxisPointer

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

public class EChartsAxisPointer extends Object implements com.oorian.json.Jsonable
Represents the axis pointer configuration for ECharts tooltips. Controls the indicator line/area that appears when hovering over the chart.
Author:
Oorian
  • Constructor Details

    • EChartsAxisPointer

      public EChartsAxisPointer()
      Constructs a new EChartsAxisPointer with default settings.
  • Method Details

    • setType

      public void setType(String type)
      Sets the type of the axis pointer.
      Parameters:
      type - the pointer type (e.g., "line", "shadow", "cross", "none")
    • setLineStyle

      public void setLineStyle(EChartsLineStyle lineStyle)
      Sets the line style for line-type axis pointers.
      Parameters:
      lineStyle - the line style configuration
    • setCrossStyle

      public void setCrossStyle(EChartsCrossStyle crossStyle)
      Sets the cross style for cross-type axis pointers.
      Parameters:
      crossStyle - the cross style configuration
    • setShadowStyle

      public void setShadowStyle(EChartsShadowStyle shadowStyle)
      Sets the shadow style for shadow-type axis pointers.
      Parameters:
      shadowStyle - the shadow style configuration
    • getType

      public String getType()
      Gets the type of the axis pointer.
      Returns:
      the pointer type
    • getLineStyle

      public EChartsLineStyle getLineStyle()
      Gets the line style for line-type axis pointers.
      Returns:
      the line style configuration
    • getCrossStyle

      public EChartsCrossStyle getCrossStyle()
      Gets the cross style for cross-type axis pointers.
      Returns:
      the cross style configuration
    • getShadowStyle

      public EChartsShadowStyle getShadowStyle()
      Gets the shadow style for shadow-type axis pointers.
      Returns:
      the shadow style configuration
    • initFromJson

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

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