Class Elements
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.options.AbstractModel<Options,IsDefaultElements>
- 
- org.pepstock.charba.client.options.Elements
 
 
 
 
- 
- All Implemented Interfaces:
- IsDefaultElements
 
 public final class Elements extends AbstractModel<Options,IsDefaultElements> implements IsDefaultElements Options can be configured for four different types of elements: arc, lines, points, and bars.
 When set, these options apply to the configuration attached to a dataset.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ArcgetArc()Returns the arc element.BargetBar()Returns the bar element.<T extends NativeObjectContainer>
 TgetElement(ElementFactory<T> factory)Returns the options defined for a custom element.LinegetLine()Returns the line element.PointgetPoint()Returns the point element.- 
Methods inherited from class org.pepstock.charba.client.options.AbstractModelgetDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
 - 
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
 
- 
 
- 
- 
- 
Method Detail- 
getArcpublic Arc getArc() Returns the arc element.- Specified by:
- getArcin interface- IsDefaultElements
- Returns:
- the arc element
 
 - 
getLinepublic Line getLine() Returns the line element.- Specified by:
- getLinein interface- IsDefaultElements
- Returns:
- the line element
 
 - 
getPointpublic Point getPoint() Returns the point element.- Specified by:
- getPointin interface- IsDefaultElements
- Returns:
- the point element
 
 - 
getBarpublic Bar getBar() Returns the bar element.- Specified by:
- getBarin interface- IsDefaultElements
- Returns:
- the bar element
 
 - 
getElementpublic <T extends NativeObjectContainer> T getElement(ElementFactory<T> factory) Returns the options defined for a custom element.- Type Parameters:
- T- type of the options
- Parameters:
- factory- factory instance to create the element
- Returns:
- the options instance defined for a custom element.
 
 
- 
 
-