Class EChartsTreemapData

java.lang.Object
com.oorian.echarts.options.EChartsTreemapData
All Implemented Interfaces:
com.oorian.json.Jsonable

public class EChartsTreemapData extends Object implements com.oorian.json.Jsonable
Represents a data node for ECharts treemap series. Supports hierarchical data with nested children.
Author:
Oorian
  • Constructor Details

    • EChartsTreemapData

      public EChartsTreemapData(String name, Number value, List<EChartsTreemapData> children)
      Constructs a new EChartsTreemapData with name, value and optional children.
      Parameters:
      name - the name of this data node
      value - the value of this node
      children - list of child nodes (can be null for leaf nodes)
    • EChartsTreemapData

      public EChartsTreemapData(String name, Number value)
      Constructs a new EChartsTreemapData with name and value only.
      Parameters:
      name - the name of this data node
      value - the value of this node
  • Method Details

    • setName

      public void setName(String name)
      Sets the name of this data node.
      Parameters:
      name - the name
    • setValue

      public void setValue(Number value)
      Sets the value of this data node.
      Parameters:
      value - the value
    • setChildren

      public void setChildren(List<EChartsTreemapData> children)
      Sets the children of this data node.
      Parameters:
      children - the list of child nodes
    • setItemStyle

      public void setItemStyle(EChartsItemStyle itemStyle)
      Sets the item style for this data node.
      Parameters:
      itemStyle - the item style configuration
    • getName

      public String getName()
      Gets the name of this data node.
      Returns:
      the name
    • getValue

      public Number getValue()
      Gets the value of this data node.
      Returns:
      the value
    • getChildren

      public List<EChartsTreemapData> getChildren()
      Gets the children of this data node.
      Returns:
      the list of child nodes
    • getItemStyle

      public EChartsItemStyle 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:
      initFromJson in interface com.oorian.json.Jsonable
    • toJsonValue

      public com.oorian.json.JsonValue toJsonValue()
      Specified by:
      toJsonValue in interface com.oorian.json.Jsonable
    • toJsonString

      public String toJsonString()
      Specified by:
      toJsonString in interface com.oorian.json.Jsonable