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.intgetBorderRadius()Returns the border radius (in pixels).BarBorderRadiusgetBorderRadiusAsObject()Returns the border radius (in pixels).DisplaygetDisplay()The display option controls the visibility of labels.
 Controls the axis global visibility (visible when true, hidden when false).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.booleanisCentered()Returns if point labels are centered.voidsetBackdropColor(String backdropColor)Sets the background color of the point label.voidsetBackdropColor(IsColor backdropColor)Sets the background color of the point label.voidsetBorderRadius(int radius)Sets the border radius.voidsetBorderRadius(BarBorderRadius borderRadius)Sets the border radius (in pixels).voidsetCentered(boolean centered)Setstrueif point labels are centered.voidsetDisplay(boolean display)Iftrue, labels are shown.voidsetDisplay(Display display)The display option controls the visibility of labels.
 Controls the axis global visibility (visible when true, hidden when false).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, 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
 
- 
 
- 
- 
- 
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.
 
 - 
setDisplaypublic void setDisplay(Display display) The display option controls the visibility of labels.
 Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the labels are visible only if there is enough space to draw them.- Parameters:
- display- display option controls the visibility of labels
 
 - 
getDisplaypublic Display getDisplay() The display option controls the visibility of labels.
 Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the labels are visible only if there is enough space to draw them.- Specified by:
- getDisplayin interface- IsDefaultPointLabels
- Returns:
- display option controls the visibility of labels
 
 - 
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.
 
 - 
setCenteredpublic void setCentered(boolean centered) Setstrueif point labels are centered.- Parameters:
- centered-- trueif point labels are centered.
 
 - 
isCenteredpublic boolean isCentered() Returns if point labels are centered.- Specified by:
- isCenteredin interface- IsDefaultPointLabels
- Returns:
- if point labels are centered
 
 - 
setBorderRadiuspublic void setBorderRadius(int radius) Sets the border radius.- Parameters:
- radius- the border radius.
 
 - 
setBorderRadiuspublic void setBorderRadius(BarBorderRadius borderRadius) Sets the border radius (in pixels).- Parameters:
- borderRadius- the border radius (in pixels).
 
 - 
getBorderRadiuspublic int getBorderRadius() Returns the border radius (in pixels).- Specified by:
- getBorderRadiusin interface- IsDefaultPointLabels
- Returns:
- the border radius (in pixels).
 
 - 
getBorderRadiusAsObjectpublic BarBorderRadius getBorderRadiusAsObject() Returns the border radius (in pixels).- Returns:
- the border radius (in pixels).
 
 
- 
 
-