Class EChartsAxisLabel

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

public class EChartsAxisLabel extends Object implements com.oorian.json.Jsonable
Represents the axis label configuration for ECharts axes. Controls the display, positioning, rotation, and formatting of axis labels.
Author:
Oorian
  • Constructor Details

    • EChartsAxisLabel

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

    • setShow

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

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

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

      public void setRotate(Number rotate)
      Sets the rotation angle of the labels.
      Parameters:
      rotate - the rotation angle in degrees
    • setMargin

      public void setMargin(Number margin)
      Sets the margin between the labels and the axis.
      Parameters:
      margin - the margin in pixels
    • setFormatter

      public void setFormatter(String formatter)
      Sets the formatter for label content.
      Parameters:
      formatter - the formatter string or function
    • setShowMinLabel

      public void setShowMinLabel(Boolean showMinLabel)
      Sets whether to show the label at the minimum value.
      Parameters:
      showMinLabel - true to show the minimum label
    • setShowMaxLabel

      public void setShowMaxLabel(Boolean showMaxLabel)
      Sets whether to show the label at the maximum value.
      Parameters:
      showMaxLabel - true to show the maximum label
    • setTextStyle

      public void setTextStyle(EChartsTextStyle textStyle)
      Sets the text style for the labels.
      Parameters:
      textStyle - the text style configuration
    • getShow

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

      public Number getInterval()
      Gets the interval between labels.
      Returns:
      the label interval
    • getInside

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

      public Number getRotate()
      Gets the rotation angle of the labels.
      Returns:
      the rotation angle in degrees
    • getMargin

      public Number getMargin()
      Gets the margin between the labels and the axis.
      Returns:
      the margin in pixels
    • getFormatter

      public String getFormatter()
      Gets the formatter for label content.
      Returns:
      the formatter string or function
    • getShowMinLabel

      public Boolean getShowMinLabel()
      Gets whether to show the label at the minimum value.
      Returns:
      true if showing the minimum label
    • getShowMaxLabel

      public Boolean getShowMaxLabel()
      Gets whether to show the label at the maximum value.
      Returns:
      true if showing the maximum label
    • getTextStyle

      public EChartsTextStyle getTextStyle()
      Gets the text style for the labels.
      Returns:
      the text style configuration
    • initFromJson

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

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