Package com.oorian.echarts.options
Class EChartsTreemapData
java.lang.Object
com.oorian.echarts.options.EChartsTreemapData
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a data node for ECharts treemap series.
Supports hierarchical data with nested children.
- Author:
- Oorian
-
Constructor Summary
ConstructorsConstructorDescriptionEChartsTreemapData(String name, Number value) Constructs a new EChartsTreemapData with name and value only.EChartsTreemapData(String name, Number value, List<EChartsTreemapData> children) Constructs a new EChartsTreemapData with name, value and optional children. -
Method Summary
Modifier and TypeMethodDescriptionGets the children of this data node.Gets the item style for this data node.getName()Gets the name of this data node.getValue()Gets the value of this data node.voidinitFromJson(com.oorian.json.JsonValue json) voidsetChildren(List<EChartsTreemapData> children) Sets the children of this data node.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style for this data node.voidSets the name of this data node.voidSets the value of this data node.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
-
EChartsTreemapData
Constructs a new EChartsTreemapData with name, value and optional children.- Parameters:
name- the name of this data nodevalue- the value of this nodechildren- list of child nodes (can be null for leaf nodes)
-
EChartsTreemapData
Constructs a new EChartsTreemapData with name and value only.- Parameters:
name- the name of this data nodevalue- the value of this node
-
-
Method Details
-
setName
Sets the name of this data node.- Parameters:
name- the name
-
setValue
Sets the value of this data node.- Parameters:
value- the value
-
setChildren
Sets the children of this data node.- Parameters:
children- the list of child nodes
-
setItemStyle
Sets the item style for this data node.- Parameters:
itemStyle- the item style configuration
-
getName
Gets the name of this data node.- Returns:
- the name
-
getValue
Gets the value of this data node.- Returns:
- the value
-
getChildren
Gets the children of this data node.- Returns:
- the list of child nodes
-
getItemStyle
Gets the item style for this data node.- 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
-