Class EChartsAxisLine

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

public class EChartsAxisLine extends Object implements com.oorian.json.Jsonable
Represents the axis line configuration for ECharts axes. Controls the appearance and behavior of the axis line in cartesian coordinate systems.
Author:
Oorian
  • Constructor Details

    • EChartsAxisLine

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

    • setShow

      public void setShow(Boolean show)
      Sets whether the axis line is displayed.
      Parameters:
      show - true to show the axis line, false to hide it
    • setOnZero

      public void setOnZero(Boolean onZero)
      Sets whether the axis line is on the zero position of the other axis.
      Parameters:
      onZero - true to position on zero, false otherwise
    • setOnZeroAxisIndex

      public void setOnZeroAxisIndex(String onZeroAxisIndex)
      Sets the index of the axis to use for the onZero positioning.
      Parameters:
      onZeroAxisIndex - the axis index
    • setSymbol

      public void setSymbol(String symbol)
      Sets the symbol at the end of the axis line.
      Parameters:
      symbol - the symbol type (e.g., "arrow", "none")
    • setSymbolSize

      public void setSymbolSize(String[] symbolSize)
      Sets the size of the symbol at the end of the axis line.
      Parameters:
      symbolSize - the symbol size array
    • setLineStyle

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

      public Boolean getShow()
      Gets whether the axis line is displayed.
      Returns:
      true if shown, false if hidden
    • getOnZero

      public Boolean getOnZero()
      Gets whether the axis line is on the zero position of the other axis.
      Returns:
      true if positioned on zero
    • getOnZeroAxisIndex

      public String getOnZeroAxisIndex()
      Gets the index of the axis to use for the onZero positioning.
      Returns:
      the axis index
    • getSymbol

      public String getSymbol()
      Gets the symbol at the end of the axis line.
      Returns:
      the symbol type
    • getSymbolSize

      public String[] getSymbolSize()
      Gets the size of the symbol at the end of the axis line.
      Returns:
      the symbol size array
    • getLineStyle

      public EChartsLineStyle getLineStyle()
      Gets the line style for the axis line.
      Returns:
      the line style configuration
    • initFromJson

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