Package com.oorian.echarts.options
Class EChartsPointer
java.lang.Object
com.oorian.echarts.options.EChartsPointer
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the pointer configuration for ECharts gauge series.
The pointer is the indicator that shows the current value on a gauge chart.
- Author:
- Oorian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()Gets the icon for the pointer.Gets the item style configuration for the pointer.Gets the length of the pointer.Gets the offset from center for the pointer.getShow()Gets whether to show the pointer.getWidth()Gets the width of the pointer.voidinitFromJson(com.oorian.json.JsonValue json) voidSets the icon for the pointer.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration for the pointer.voidSets the length of the pointer.voidsetOffsetCenter(Number offsetCenter) Sets the offset from center for the pointer.voidSets whether to show the pointer.voidSets the width of the pointer.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
-
EChartsPointer
public EChartsPointer()Default constructor.
-
-
Method Details
-
setShow
Sets whether to show the pointer.- Parameters:
show- true to show the pointer, false to hide it
-
setLength
Sets the length of the pointer.- Parameters:
length- the length value (can be percentage or absolute)
-
setWidth
Sets the width of the pointer.- Parameters:
width- the width in pixels
-
setIcon
Sets the icon for the pointer.- Parameters:
icon- the icon path or symbol
-
setOffsetCenter
Sets the offset from center for the pointer.- Parameters:
offsetCenter- the offset value
-
setItemStyle
Sets the item style configuration for the pointer.- Parameters:
itemStyle- the item style configuration
-
getShow
Gets whether to show the pointer.- Returns:
- true if the pointer is shown, false otherwise
-
getLength
Gets the length of the pointer.- Returns:
- the length value
-
getWidth
Gets the width of the pointer.- Returns:
- the width in pixels
-
getIcon
Gets the icon for the pointer.- Returns:
- the icon path or symbol
-
getOffsetCenter
Gets the offset from center for the pointer.- Returns:
- the offset value
-
getItemStyle
Gets the item style configuration for the pointer.- Returns:
- the item style configuration
-
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
-