Class AbstractElement<D extends IsDefaultOptionsElement>
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.options.AbstractModel<Elements,D>
- 
- org.pepstock.charba.client.options.AbstractElement<D>
 
 
 
 
- 
- Type Parameters:
- D- defaults provider class
 
 public abstract class AbstractElement<D extends IsDefaultOptionsElement> extends AbstractModel<Elements,D> Options can be configured for four different types of elements: arc, lines, points, and bars.
 When set, these options apply to all objects of that type unless specifically overridden by the configuration attached to a dataset.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IsColorgetBackgroundColor()Returns the background color.StringgetBackgroundColorAsString()Returns the background color.IsColorgetBorderColor()Returns the border color.StringgetBorderColorAsString()Returns the border color.intgetBorderWidth()Returns the border width.IsColorgetHoverBackgroundColor()Returns the background color when hovered.StringgetHoverBackgroundColorAsString()Returns the background color when hovered.IsColorgetHoverBorderColor()Returns the border color when hovered.StringgetHoverBorderColorAsString()Returns the border color when hovered.intgetHoverBorderWidth()Returns the border width when hovered.voidsetBackgroundColor(String backgroundColor)Sets the background color.voidsetBackgroundColor(IsColor backgroundColor)Sets the background color.voidsetBorderColor(String borderColor)Sets the border color.voidsetBorderColor(IsColor borderColor)Sets the border color.voidsetBorderWidth(int borderWidth)Sets the border width.voidsetHoverBackgroundColor(String backgroundColor)Sets the background color when hovered.voidsetHoverBackgroundColor(IsColor backgroundColor)Sets the background color when hovered.voidsetHoverBorderColor(String borderColor)Sets the border color when hovered.voidsetHoverBorderColor(IsColor borderColor)Sets the border color when hovered.voidsetHoverBorderWidth(int borderWidth)Sets the border width when hovered.- 
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, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Method Detail- 
setBackgroundColorpublic final void setBackgroundColor(IsColor backgroundColor) Sets the background color.- Parameters:
- backgroundColor- the background color.
 
 - 
setBackgroundColorpublic final void setBackgroundColor(String backgroundColor) Sets the background color.- Parameters:
- backgroundColor- the background color.
 
 - 
getBackgroundColorAsStringpublic final String getBackgroundColorAsString() Returns the background color.- Returns:
- the background color.
 
 - 
getBackgroundColorpublic final IsColor getBackgroundColor() Returns the background color.- Returns:
- the background color.
 
 - 
setBorderWidthpublic final void setBorderWidth(int borderWidth) Sets the border width.- Parameters:
- borderWidth- the border width.
 
 - 
getBorderWidthpublic final int getBorderWidth() Returns the border width.- Returns:
- the border width.
 
 - 
setBorderColorpublic final void setBorderColor(IsColor borderColor) Sets the border color.- Parameters:
- borderColor- the border color.
 
 - 
setBorderColorpublic final void setBorderColor(String borderColor) Sets the border color.- Parameters:
- borderColor- the border color.
 
 - 
getBorderColorAsStringpublic final String getBorderColorAsString() Returns the border color.- Returns:
- the border color.
 
 - 
getBorderColorpublic final IsColor getBorderColor() Returns the border color.- Returns:
- the border color.
 
 - 
setHoverBackgroundColorpublic final void setHoverBackgroundColor(IsColor backgroundColor) Sets the background color when hovered.- Parameters:
- backgroundColor- the background color when hovered.
 
 - 
setHoverBackgroundColorpublic final void setHoverBackgroundColor(String backgroundColor) Sets the background color when hovered.- Parameters:
- backgroundColor- the background color when hovered.
 
 - 
getHoverBackgroundColorAsStringpublic final String getHoverBackgroundColorAsString() Returns the background color when hovered.- Returns:
- the background color when hovered.
 
 - 
getHoverBackgroundColorpublic final IsColor getHoverBackgroundColor() Returns the background color when hovered.- Returns:
- the background color when hovered.
 
 - 
setHoverBorderWidthpublic final void setHoverBorderWidth(int borderWidth) Sets the border width when hovered.- Parameters:
- borderWidth- the border width when hovered.
 
 - 
getHoverBorderWidthpublic final int getHoverBorderWidth() Returns the border width when hovered.- Returns:
- the border width when hovered.
 
 - 
setHoverBorderColorpublic final void setHoverBorderColor(IsColor borderColor) Sets the border color when hovered.- Parameters:
- borderColor- the border color when hovered.
 
 - 
setHoverBorderColorpublic final void setHoverBorderColor(String borderColor) Sets the border color when hovered.- Parameters:
- borderColor- the border color when hovered.
 
 - 
getHoverBorderColorAsStringpublic final String getHoverBorderColorAsString() Returns the border color when hovered.- Returns:
- the border color when hovered.
 
 - 
getHoverBorderColorpublic final IsColor getHoverBorderColor() Returns the border color when hovered.- Returns:
- the border color when hovered.
 
 
- 
 
-