Package com.oorian.echarts.options
Class EChartsLabelLine
java.lang.Object
com.oorian.echarts.options.EChartsLabelLine
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the length of the first segment of the label line.Gets the length of the second segment of the label line.Gets the line style for the label line.getShow()Gets whether the label line is displayed.Gets whether the label line is rendered as a smooth curve.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsLabelLine from a JSON value.voidSets the length of the first segment of the label line.voidsetLength2(Number length2) Sets the length of the second segment of the label line.voidsetLineStyle(EChartsLineStyle lineStyle) Sets the line style for the label line.voidSets whether the label line is displayed.voidSets whether the label line is rendered as a smooth curve.Converts this EChartsLabelLine to a JSON string.com.oorian.json.JsonValueConverts this EChartsLabelLine to a JSON value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oorian.json.Jsonable
initFromJson, initFromJson
-
Constructor Details
-
EChartsLabelLine
public EChartsLabelLine()Constructs a new EChartsLabelLine with default settings.
-
-
Method Details
-
setShow
Sets whether the label line is displayed.- Parameters:
show- true to show the label line, false to hide it
-
setLength
Sets the length of the first segment of the label line.- Parameters:
length- the length in pixels
-
setLength2
Sets the length of the second segment of the label line.- Parameters:
length2- the length in pixels
-
setSmooth
Sets whether the label line is rendered as a smooth curve.- Parameters:
smooth- true for smooth curve, false for straight line
-
setLineStyle
Sets the line style for the label line.- Parameters:
lineStyle- the line style configuration
-
getShow
Gets whether the label line is displayed.- Returns:
- true if shown, false if hidden
-
getLength
Gets the length of the first segment of the label line.- Returns:
- the length in pixels
-
getLength2
Gets the length of the second segment of the label line.- Returns:
- the length in pixels
-
getSmooth
Gets whether the label line is rendered as a smooth curve.- Returns:
- true for smooth curve, false for straight line
-
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:
initFromJsonin interfacecom.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:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- the JSON representation
-
toJsonString
Converts this EChartsLabelLine to a JSON string.- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable- Returns:
- the JSON string representation
-