Class PointLabels
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.options.AbstractModel<AbstractScale,IsDefaultPointLabels>
- 
- org.pepstock.charba.client.options.PointLabels
 
 
 
 
- 
- All Implemented Interfaces:
- IsDefaultFontContainer,- IsDefaultPointLabels,- HasFont
 
 public final class PointLabels extends AbstractModel<AbstractScale,IsDefaultPointLabels> implements IsDefaultPointLabels, HasFont It is used to configure the point labels that are shown on the perimeter of the scale.
 Note that these options only apply if display istrue.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IsColorgetBackdropColor()Returns the background color of the point label.StringgetBackdropColorAsString()Returns the background color of the point label.PaddinggetBackdropPadding()Returns the padding of label backdrop.FontContainergetFontContainer()Returns a font container instance to use in the default methods of this interface.intgetPadding()Returns the padding between chart and point labels, in pixels.booleanisDisplay()Iftrue, labels are shown.voidsetBackdropColor(String backdropColor)Sets the background color of the point label.voidsetBackdropColor(IsColor backdropColor)Sets the background color of the point label.voidsetDisplay(boolean display)Iftrue, labels are shown.voidsetPadding(int padding)Sets the padding between chart and point labels, in pixels.- 
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- 
getFontContainerpublic FontContainer getFontContainer() Description copied from interface:HasFontReturns a font container instance to use in the default methods of this interface.- Specified by:
- getFontContainerin interface- HasFont
- Returns:
- a font container instance
 
 - 
getBackdropPaddingpublic Padding getBackdropPadding() Returns the padding of label backdrop.- Specified by:
- getBackdropPaddingin interface- IsDefaultPointLabels
- Returns:
- padding of label backdrop.
 
 - 
setDisplaypublic void setDisplay(boolean display) Iftrue, labels are shown.- Parameters:
- display- if- true, labels are shown.
 
 - 
isDisplaypublic boolean isDisplay() Iftrue, labels are shown.- Specified by:
- isDisplayin interface- IsDefaultPointLabels
- Returns:
- if true, labels are shown.
 
 - 
setBackdropColorpublic void setBackdropColor(IsColor backdropColor) Sets the background color of the point label.- Parameters:
- backdropColor- the background color of the point label
 
 - 
setBackdropColorpublic void setBackdropColor(String backdropColor) Sets the background color of the point label.- Parameters:
- backdropColor- the background color of the point label
 
 - 
getBackdropColorAsStringpublic String getBackdropColorAsString() Returns the background color of the point label.- Specified by:
- getBackdropColorAsStringin interface- IsDefaultPointLabels
- Returns:
- the background color of the point label
 
 - 
getBackdropColorpublic IsColor getBackdropColor() Returns the background color of the point label.- Returns:
- the background color of the point label
 
 - 
setPaddingpublic void setPadding(int padding) Sets the padding between chart and point labels, in pixels.- Parameters:
- padding- the padding between chart and point labels, in pixels.
 
 - 
getPaddingpublic int getPadding() Returns the padding between chart and point labels, in pixels.- Specified by:
- getPaddingin interface- IsDefaultPointLabels
- Returns:
- padding the padding between chart and point labels, in pixels.
 
 
- 
 
-