Package org.zkoss.chart
Class LevelSize
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.LevelSize
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class LevelSize extends Optionable
Determines the width of the ring per level.- Since:
- 7.2.1.0
- Author:
- rudyhuang
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetUnit()Returns how to interpret levelSize.value.NumbergetValue()Returns the value used for calculating the width of the ring.voidsetUnit(String unit)Sets how to interpret levelSize.value.voidsetValue(Number value)Sets the value used for calculating the width of the ring.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
getUnit
public String getUnit()
Returns how to interpret levelSize.value.percentagegives a width relative to result of outer radius minus inner radius.pixelsgives the ring a fixed width in pixels.weighttakes the remaining width after percentage and pixels, and distributes it across all "weighted" levels. The value relative to the sum of all weights determines the width.
Default: "weight"
-
setUnit
public void setUnit(String unit)
Sets how to interpret levelSize.value.percentagegives a width relative to result of outer radius minus inner radius.pixelsgives the ring a fixed width in pixels.weighttakes the remaining width after percentage and pixels, and distributes it across all "weighted" levels. The value relative to the sum of all weights determines the width.
-
getValue
public Number getValue()
Returns the value used for calculating the width of the ring. Its' affect is determined by levelSize.unit.Default: 1
-
setValue
public void setValue(Number value)
Sets the value used for calculating the width of the ring. Its' affect is determined by levelSize.unit.
-
-