Package com.oorian.echarts.options
Class EChartsSunburstData
java.lang.Object
com.oorian.echarts.options.EChartsSunburstData
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a data node for sunburst charts with hierarchical structure.
Implements Jsonable to support JSON serialization and deserialization for ECharts.
- Author:
- Oorian
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty EChartsSunburstData instance.EChartsSunburstData(String name, Number value) Constructs a EChartsSunburstData with name and value.EChartsSunburstData(String name, Number value, List<EChartsSunburstData> children) Constructs a EChartsSunburstData with name, value, and children. -
Method Summary
Modifier and TypeMethodDescriptionGets the children of this data node.Gets the emphasis configuration.Gets the item style configuration.getLabel()Gets the label configuration.getName()Gets the name of this data node.getValue()Gets the value of this data node.voidinitFromJson(com.oorian.json.JsonValue json) voidsetChildren(List<EChartsSunburstData> children) Sets the children of this data node.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration.voidsetLabel(EChartsLabel label) Sets the label configuration.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
-
EChartsSunburstData
public EChartsSunburstData()Constructs an empty EChartsSunburstData instance. -
EChartsSunburstData
Constructs a EChartsSunburstData with name and value.- Parameters:
name- the name of this data nodevalue- the value of this node
-
EChartsSunburstData
Constructs a EChartsSunburstData with name, value, and children.- Parameters:
name- the name of this data nodevalue- the value of this nodechildren- the list of child nodes
-
-
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 configuration.- Parameters:
itemStyle- the item style configuration
-
setLabel
Sets the label configuration.- Parameters:
label- the label configuration
-
setEmphasis
Sets the emphasis configuration.- Parameters:
emphasis- the emphasis 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 configuration.- Returns:
- the item style configuration
-
getLabel
Gets the label configuration.- Returns:
- the label configuration
-
getEmphasis
Gets the emphasis configuration.- Returns:
- the emphasis 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
-