Package com.oorian.echarts.options
Class EChartsCrossStyle
java.lang.Object
com.oorian.echarts.options.EChartsCrossStyle
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the cross style configuration for ECharts tooltip axis pointer.
Cross style defines the appearance of cross-type axis pointers.
- Author:
- Oorian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Gets the color of the cross style.Gets the opacity of the cross style.getType()Gets the type of the cross style line.getWidth()Gets the width of the cross style line.voidinitFromJson(com.oorian.json.JsonValue json) voidSets the color of the cross style.voidsetOpacity(Number opacity) Sets the opacity of the cross style.voidSets the type of the cross style line.voidSets the width of the cross style line.com.oorian.json.JsonValueMethods 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
-
EChartsCrossStyle
public EChartsCrossStyle()Default constructor.
-
-
Method Details
-
setColor
Sets the color of the cross style.- Parameters:
color- the color value
-
setWidth
Sets the width of the cross style line.- Parameters:
width- the width in pixels
-
setType
Sets the type of the cross style line.- Parameters:
type- the line type (e.g., 'solid', 'dashed', 'dotted')
-
setOpacity
Sets the opacity of the cross style.- Parameters:
opacity- the opacity value (0 to 1)
-
getColor
Gets the color of the cross style.- Returns:
- the color value
-
getWidth
Gets the width of the cross style line.- Returns:
- the width in pixels
-
getType
Gets the type of the cross style line.- Returns:
- the line type
-
getOpacity
Gets the opacity of the cross style.- Returns:
- the opacity value
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) - Specified by:
initFromJsonin interfacecom.oorian.json.Jsonable
-
toJsonValue
public com.oorian.json.JsonValue toJsonValue()- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable
-
toJsonString
- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable
-