Package com.oorian.echarts.options
Class EChartsAxisPointer
java.lang.Object
com.oorian.echarts.options.EChartsAxisPointer
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the axis pointer configuration for ECharts tooltips.
Controls the indicator line/area that appears when hovering over the chart.
- Author:
- Oorian
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsAxisPointer with default settings. -
Method Summary
Modifier and TypeMethodDescriptionGets the cross style for cross-type axis pointers.Gets the line style for line-type axis pointers.Gets the shadow style for shadow-type axis pointers.getType()Gets the type of the axis pointer.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsAxisPointer from a JSON value.voidsetCrossStyle(EChartsCrossStyle crossStyle) Sets the cross style for cross-type axis pointers.voidsetLineStyle(EChartsLineStyle lineStyle) Sets the line style for line-type axis pointers.voidsetShadowStyle(EChartsShadowStyle shadowStyle) Sets the shadow style for shadow-type axis pointers.voidSets the type of the axis pointer.Converts this EChartsAxisPointer to a JSON string.com.oorian.json.JsonValueConverts this EChartsAxisPointer 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
-
EChartsAxisPointer
public EChartsAxisPointer()Constructs a new EChartsAxisPointer with default settings.
-
-
Method Details
-
setType
Sets the type of the axis pointer.- Parameters:
type- the pointer type (e.g., "line", "shadow", "cross", "none")
-
setLineStyle
Sets the line style for line-type axis pointers.- Parameters:
lineStyle- the line style configuration
-
setCrossStyle
Sets the cross style for cross-type axis pointers.- Parameters:
crossStyle- the cross style configuration
-
setShadowStyle
Sets the shadow style for shadow-type axis pointers.- Parameters:
shadowStyle- the shadow style configuration
-
getType
Gets the type of the axis pointer.- Returns:
- the pointer type
-
getLineStyle
Gets the line style for line-type axis pointers.- Returns:
- the line style configuration
-
getCrossStyle
Gets the cross style for cross-type axis pointers.- Returns:
- the cross style configuration
-
getShadowStyle
Gets the shadow style for shadow-type axis pointers.- Returns:
- the shadow style configuration
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) Initializes this EChartsAxisPointer 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 EChartsAxisPointer to a JSON value.- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- the JSON representation
-
toJsonString
Converts this EChartsAxisPointer to a JSON string.- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable- Returns:
- the JSON string representation
-