Package com.oorian.echarts.options
Class EChartsAxisLine
java.lang.Object
com.oorian.echarts.options.EChartsAxisLine
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the line style for the axis line.Gets whether the axis line is on the zero position of the other axis.Gets the index of the axis to use for the onZero positioning.getShow()Gets whether the axis line is displayed.Gets the symbol at the end of the axis line.String[]Gets the size of the symbol at the end of the axis line.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsAxisLine from a JSON value.voidsetLineStyle(EChartsLineStyle lineStyle) Sets the line style for the axis line.voidSets whether the axis line is on the zero position of the other axis.voidsetOnZeroAxisIndex(String onZeroAxisIndex) Sets the index of the axis to use for the onZero positioning.voidSets whether the axis line is displayed.voidSets the symbol at the end of the axis line.voidsetSymbolSize(String[] symbolSize) Sets the size of the symbol at the end of the axis line.com.oorian.json.JsonValueConverts this EChartsAxisLine 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, toJsonString
-
Constructor Details
-
EChartsAxisLine
public EChartsAxisLine()Constructs a new EChartsAxisLine with default settings.
-
-
Method Details
-
setShow
Sets whether the axis line is displayed.- Parameters:
show- true to show the axis line, false to hide it
-
setOnZero
Sets whether the axis line is on the zero position of the other axis.- Parameters:
onZero- true to position on zero, false otherwise
-
setOnZeroAxisIndex
Sets the index of the axis to use for the onZero positioning.- Parameters:
onZeroAxisIndex- the axis index
-
setSymbol
Sets the symbol at the end of the axis line.- Parameters:
symbol- the symbol type (e.g., "arrow", "none")
-
setSymbolSize
Sets the size of the symbol at the end of the axis line.- Parameters:
symbolSize- the symbol size array
-
setLineStyle
Sets the line style for the axis line.- Parameters:
lineStyle- the line style configuration
-
getShow
Gets whether the axis line is displayed.- Returns:
- true if shown, false if hidden
-
getOnZero
Gets whether the axis line is on the zero position of the other axis.- Returns:
- true if positioned on zero
-
getOnZeroAxisIndex
Gets the index of the axis to use for the onZero positioning.- Returns:
- the axis index
-
getSymbol
Gets the symbol at the end of the axis line.- Returns:
- the symbol type
-
getSymbolSize
Gets the size of the symbol at the end of the axis line.- Returns:
- the symbol size array
-
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:
initFromJsonin interfacecom.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:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- the JSON representation
-