Package org.pepstock.charba.client.items
Class BarElement
- 
- All Implemented Interfaces:
- IsPoint
 
 public class BarElement extends ChartElement Maps the out-of-the-box CHART.JS element used to represents bars on the charts.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Field SummaryFields Modifier and Type Field Description static ChartElementFactoryFACTORYStatic instance for the BAR element factorystatic StringTYPEBAR element type.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetBase()Returns the base value of data set.doublegetHeight()Returns the height of data set item in pixel.BarElementOptionsgetOptions()Returns the element options.doublegetWidth()Returns the width of data set item in pixel.booleanisHorizontal()Returns if is an horizontal view.- 
Methods inherited from class org.pepstock.charba.client.items.ChartElementgetCenterPoint, getCenterPoint, getContext, getFinalPositionProps, getFinalPositionProps, getType, isActive, isSkipped, isStop, nativeObject, toString
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractReadOnlyPointgetX, getY
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, 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.NativeObjectContainercheckAndGetColor, 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, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.commons.IsPointisConsistent
 
- 
 
- 
- 
- 
Field Detail- 
TYPEpublic static final String TYPE BAR element type.- See Also:
- Constant Field Values
 
 - 
FACTORYpublic static final ChartElementFactory FACTORY Static instance for the BAR element factory
 
- 
 - 
Method Detail- 
getOptionspublic BarElementOptions getOptions() Returns the element options.- Overrides:
- getOptionsin class- ChartElement
- Returns:
- the element options.
 
 - 
isHorizontalpublic boolean isHorizontal() Returns if is an horizontal view.- Returns:
- trueif is an horizontal view.
 
 - 
getBasepublic double getBase() Returns the base value of data set.- Returns:
- the base value of data set.
 
 - 
getWidthpublic double getWidth() Returns the width of data set item in pixel.- Returns:
- the width of data set item in pixel.
 
 - 
getHeightpublic double getHeight() Returns the height of data set item in pixel.- Returns:
- the height of data set item in pixel.
 
 
- 
 
-