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 Summary
Nested Classes Modifier and Type Class Description static class
TreeMapDataPoint.TreeMapDataPointFactory
CreatesTreeMapDataPoint
form aNativeObject
.-
Nested classes/interfaces inherited from class org.pepstock.charba.client.data.AbstractDataPoint
AbstractDataPoint.CharbaProperty
-
-
Field Summary
Fields Modifier and Type Field Description static TreeMapDataPoint.TreeMapDataPointFactory
FACTORY
Factory instance to create data points.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InnerData
getData()
Returns the inner data.<T extends NativeObjectContainer>
TgetData(NativeObjectContainerFactory<T> factory)
Returns the object in the user format of the data point.double
getDepth()
Returns the depth, only available if grouping.String
getGroup()
Returns the group name, only available if grouping.double
getGroupSum()
Returns the group sum, only available if grouping.double
getHeight()
Returns the height in pixel.double
getNormalized()
Returns the normalized value.double
getSum()
Returns the sum.TreeMapSumKeysData
getSumKeysData()
Returns the sum keys data.double
getValue()
Returns the value.double
getWidth()
Returns the width in pixel.double
getX()
Returns X value.double
getY()
Returns Y value.-
Methods inherited from class org.pepstock.charba.client.data.AbstractDataPoint
checkAndSetType, getAttribute, getAttributeAsDate, getAttributeAsObject, getAttributeAsString, setAttribute, setAttribute, setAttribute, setAttribute
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, checkDefaultValuesArgument, 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, 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
-
FACTORY
public static final TreeMapDataPoint.TreeMapDataPointFactory FACTORY
Factory instance to create data points. To use byDataItem
to get the data point for matrix chart.
-
-
Method Detail
-
getData
public InnerData getData()
Returns the inner data.- Returns:
- the inner data
-
getSumKeysData
public TreeMapSumKeysData getSumKeysData()
Returns the sum keys data.- Returns:
- the sum keys data.
-
getData
public <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
-
getNormalized
public double getNormalized()
Returns the normalized value.- Returns:
- the normalized value
-
getX
public double getX()
Returns X value.- Returns:
- X value
-
getY
public double getY()
Returns Y value.- Returns:
- Y value.
-
getWidth
public double getWidth()
Returns the width in pixel.- Returns:
- the width in pixel.
-
getHeight
public double getHeight()
Returns the height in pixel.- Returns:
- the height in pixel.
-
getValue
public double getValue()
Returns the value.- Returns:
- the value.
-
getSum
public double getSum()
Returns the sum.- Returns:
- the sum.
-
getDepth
public double getDepth()
Returns the depth, only available if grouping.- Returns:
- the depth, only available if grouping.
-
getGroup
public String getGroup()
Returns the group name, only available if grouping.- Returns:
- the group name, only available if grouping.
-
getGroupSum
public double getGroupSum()
Returns the group sum, only available if grouping.- Returns:
- the group sum, only available if grouping.
-
-