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 <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
getSum()
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.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
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, 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 <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
-
getTreeObjects
public <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
-
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.
-
-