Class EChartsLabelLine

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

public class EChartsLabelLine extends Object implements com.oorian.json.Jsonable
Represents the label line configuration for ECharts elements. Controls the visual line connecting labels to their data points, commonly used in pie charts.
Author:
Oorian
  • Constructor Details

    • EChartsLabelLine

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

    • setShow

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

      public void setLength(Number length)
      Sets the length of the first segment of the label line.
      Parameters:
      length - the length in pixels
    • setLength2

      public void setLength2(Number length2)
      Sets the length of the second segment of the label line.
      Parameters:
      length2 - the length in pixels
    • setSmooth

      public void setSmooth(Boolean smooth)
      Sets whether the label line is rendered as a smooth curve.
      Parameters:
      smooth - true for smooth curve, false for straight line
    • setLineStyle

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

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

      public Number getLength()
      Gets the length of the first segment of the label line.
      Returns:
      the length in pixels
    • getLength2

      public Number getLength2()
      Gets the length of the second segment of the label line.
      Returns:
      the length in pixels
    • getSmooth

      public Boolean getSmooth()
      Gets whether the label line is rendered as a smooth curve.
      Returns:
      true for smooth curve, false for straight line
    • getLineStyle

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

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

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