Class InnerData
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.treemap.InnerData
-
public final class InnerData extends NativeObjectContainer
Inner data implementation of the object which is mapping additional data.
Inside this object there is an array of original object used by the user.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAttribute(Key key)Returns a custom field value from data point.DategetAttributeAsDate(Key key)Returns a custom field value from data point.<T extends NativeObjectContainer>
TgetAttributeAsObject(Key key, NativeObjectContainerFactory<T> factory)Returns a custom field value from data point.StringgetAttributeAsString(Key key)Returns a custom field value from data point.<T extends NativeObjectContainer>
List<T>getChildren(NativeObjectContainerFactory<T> factory)Returns the object in the user format of the data point.intgetIndex()Returns the original index in the data of the data point.StringgetLabel()Returns the label of the data point in the grouped data.StringgetPath()Returns the path of the data point in the grouped data.booleanisGroup()Returnstrueif the data point is a group.booleanisLeaf()Returnstrueif the data point is a leaf node after grouping.-
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
-
-
-
-
Method Detail
-
isGroup
public boolean isGroup()
Returnstrueif the data point is a group.- Returns:
trueif the data point is a group
-
isLeaf
public boolean isLeaf()
Returnstrueif the data point is a leaf node after grouping.- Returns:
trueif the data point is a leaf node after grouping
-
getChildren
public <T extends NativeObjectContainer> List<T> getChildren(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
-
getIndex
public int getIndex()
Returns the original index in the data of the data point.- Returns:
- the original index in the data of the data point
-
getLabel
public String getLabel()
Returns the label of the data point in the grouped data.- Returns:
- the label of the data point in the grouped data
-
getPath
public String getPath()
Returns the path of the data point in the grouped data.- Returns:
- the path of the data point in the grouped data
-
getAttribute
public final double getAttribute(Key key)
Returns a custom field value from data point.- Parameters:
key- key of java script object to get.- Returns:
- custom field value from data point.
-
getAttributeAsString
public final String getAttributeAsString(Key key)
Returns a custom field value from data point.- Parameters:
key- key of java script object to get.- Returns:
- custom field value from data point.
-
getAttributeAsDate
public final Date getAttributeAsDate(Key key)
Returns a custom field value from data point.- Parameters:
key- key of java script object to get.- Returns:
- custom field value from data point.
-
getAttributeAsObject
public final <T extends NativeObjectContainer> T getAttributeAsObject(Key key, NativeObjectContainerFactory<T> factory)
Returns a custom field value from data point.- Type Parameters:
T- type of user object- Parameters:
key- key of java script object to get.factory- instance of factory to create the native object- Returns:
- custom field value from data point.
-
-