Class EChartsAxisTick

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

public class EChartsAxisTick extends Object implements com.oorian.json.Jsonable
Represents the axis tick configuration for ECharts axes. Controls the appearance and behavior of tick marks along the axis.
Author:
Oorian
  • Constructor Details

    • EChartsAxisTick

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

    • setShow

      public void setShow(Boolean show)
      Sets whether the axis ticks are displayed.
      Parameters:
      show - true to show the ticks, false to hide them
    • setAlignWithLabel

      public void setAlignWithLabel(Boolean alignWithLabel)
      Sets whether the ticks are aligned with the labels.
      Parameters:
      alignWithLabel - true to align ticks with labels
    • setInterval

      public void setInterval(Number interval)
      Sets the interval between ticks.
      Parameters:
      interval - the tick interval
    • setInside

      public void setInside(Boolean inside)
      Sets whether the ticks are inside the axis area.
      Parameters:
      inside - true for inside, false for outside
    • setLength

      public void setLength(Number length)
      Sets the length of the tick marks.
      Parameters:
      length - the tick length in pixels
    • setLineStyle

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

      public Boolean getShow()
      Gets whether the axis ticks are displayed.
      Returns:
      true if shown, false if hidden
    • getAlignWithLabel

      public Boolean getAlignWithLabel()
      Gets whether the ticks are aligned with the labels.
      Returns:
      true if aligned with labels
    • getInterval

      public Number getInterval()
      Gets the interval between ticks.
      Returns:
      the tick interval
    • getInside

      public Boolean getInside()
      Gets whether the ticks are inside the axis area.
      Returns:
      true for inside, false for outside
    • getLength

      public Number getLength()
      Gets the length of the tick marks.
      Returns:
      the tick length in pixels
    • getLineStyle

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

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

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