Package com.oorian.echarts.options
Class EChartsEmphasis
java.lang.Object
com.oorian.echarts.options.EChartsEmphasis
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the emphasis state configuration for ECharts elements.
Controls the visual appearance of chart elements when they are highlighted or hovered.
- Author:
- Oorian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the item style for the emphasis state.getLabel()Gets the label configuration for the emphasis state.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsEmphasis from a JSON value.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style for the emphasis state.voidsetLabel(EChartsLabel label) Sets the label configuration for the emphasis state.Converts this EChartsEmphasis to a JSON string.com.oorian.json.JsonValueConverts this EChartsEmphasis 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
-
EChartsEmphasis
public EChartsEmphasis()Constructs a new EChartsEmphasis with default settings.
-
-
Method Details
-
setItemStyle
Sets the item style for the emphasis state.- Parameters:
itemStyle- the item style configuration
-
setLabel
Sets the label configuration for the emphasis state.- Parameters:
label- the label configuration
-
getItemStyle
Gets the item style for the emphasis state.- Returns:
- the item style configuration
-
getLabel
Gets the label configuration for the emphasis state.- Returns:
- the label configuration
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) Initializes this EChartsEmphasis 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 EChartsEmphasis to a JSON value.- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- the JSON representation
-
toJsonString
Converts this EChartsEmphasis to a JSON string.- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable- Returns:
- the JSON string representation
-