Package com.oorian.echarts.options
Class EChartsLevels
java.lang.Object
com.oorian.echarts.options.EChartsLevels
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the levels configuration for ECharts hierarchical series such as sunburst and treemap.
Each level can have its own styling and label configuration.
- Author:
- Oorian
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a single level configuration within the levels hierarchy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLevel(EChartsLevels.Level level) Adds a level configuration to the list.Gets the list of level configurations.voidinitFromJson(com.oorian.json.JsonValue json) voidsetLevels(List<EChartsLevels.Level> levels) Sets the list of level configurations.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
-
EChartsLevels
public EChartsLevels()Default constructor.
-
-
Method Details
-
setLevels
Sets the list of level configurations.- Parameters:
levels- the list of level configurations
-
getLevels
Gets the list of level configurations.- Returns:
- the list of level configurations
-
addLevel
Adds a level configuration to the list.- Parameters:
level- the level configuration to add
-
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
-