Class TreeMapDataPoint
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.data.AbstractDataPoint
- 
- org.pepstock.charba.client.treemap.TreeMapDataPoint
 
 
 
- 
 public final class TreeMapDataPoint extends AbstractDataPoint Used for treemap datasets. Each data point is related to a box drawn on treemap chart.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTreeMapDataPoint.TreeMapDataPointFactoryCreatesTreeMapDataPointform aNativeObject.- 
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.AbstractDataPointAbstractDataPoint.CharbaProperty
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static TreeMapDataPoint.TreeMapDataPointFactoryFACTORYFactory instance to create data points.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends NativeObjectContainer>
 TgetData(NativeObjectContainerFactory<T> factory)Returns the object in the user format of the data point.doublegetDepth()Returns the depth, only available if grouping.StringgetGroup()Returns the group name, only available if grouping.doublegetGroupSum()Returns the group sum, only available if grouping.doublegetHeight()Returns the height in pixel.doublegetSum()Returns the sum.<T extends NativeObjectContainer>
 List<T>getTreeObjects(NativeObjectContainerFactory<T> factory)Returns the unmodifiable list of tree user objects, related to this data point.doublegetValue()Returns the value.doublegetWidth()Returns the width in pixel.doublegetX()Returns X value.doublegetY()Returns Y value.- 
Methods inherited from class org.pepstock.charba.client.data.AbstractDataPointcheckAndSetType, getAttribute, getAttributeAsDate, getAttributeAsObject, getAttributeAsString, setAttribute, setAttribute, setAttribute, setAttribute
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Field Detail- 
FACTORYpublic static final TreeMapDataPoint.TreeMapDataPointFactory FACTORY Factory instance to create data points. To use byDataItemto get the data point for matrix chart.
 
- 
 - 
Method Detail- 
getDatapublic <T extends NativeObjectContainer> T getData(NativeObjectContainerFactory<T> factory) Returns the object in the user format of the data point.- Type Parameters:
- T- type of user object
- Parameters:
- factory- instance of factory to create the native object
- Returns:
- the object in the user format of the data point
 
 - 
getTreeObjectspublic <T extends NativeObjectContainer> List<T> getTreeObjects(NativeObjectContainerFactory<T> factory) Returns the unmodifiable list of tree user objects, related to this data point.- Type Parameters:
- T- type of tree objects
- Parameters:
- factory- instance of factory to create the native object
- Returns:
- unmodifiable list of objects, related to this data point
 
 - 
getXpublic double getX() Returns X value.- Returns:
- X value
 
 - 
getYpublic double getY() Returns Y value.- Returns:
- Y value.
 
 - 
getWidthpublic double getWidth() Returns the width in pixel.- Returns:
- the width in pixel.
 
 - 
getHeightpublic double getHeight() Returns the height in pixel.- Returns:
- the height in pixel.
 
 - 
getValuepublic double getValue() Returns the value.- Returns:
- the value.
 
 - 
getSumpublic double getSum() Returns the sum.- Returns:
- the sum.
 
 - 
getDepthpublic double getDepth() Returns the depth, only available if grouping.- Returns:
- the depth, only available if grouping.
 
 - 
getGrouppublic String getGroup() Returns the group name, only available if grouping.- Returns:
- the group name, only available if grouping.
 
 - 
getGroupSumpublic double getGroupSum() Returns the group sum, only available if grouping.- Returns:
- the group sum, only available if grouping.
 
 
- 
 
-