Package org.pepstock.charba.client.items
Class ScaleLabelItem
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.items.ScaleLabelItem
 
 
 
- 
 public final class ScaleLabelItem extends AbstractNode The label item maps the labels computed byScaleItem.
 This is a wrapper of the CHART.JS item with all needed info.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IsDefaultFontgetFont()Returns the font applied to the scale label.StringgetLabel()Returns the label of the scale.List<String>getLabels()Returns the labels of the scale.ScaleLabelOptionsgetOptions()Returns the options applied to the scale label.doublegetTextOffset()Returns the offset of the text for scale item.- 
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- 
getLabelpublic String getLabel() Returns the label of the scale. If the labels are stored as array, returns the array values joined byConstants.LINE_SEPARATOR.- Returns:
- the label of the scale.
 
 - 
getLabelspublic List<String> getLabels() Returns the labels of the scale.- Returns:
- the labels of the scale.
 
 - 
getOptionspublic ScaleLabelOptions getOptions() Returns the options applied to the scale label.- Returns:
- the options applied to the scale label.
 
 - 
getFontpublic IsDefaultFont getFont() Returns the font applied to the scale label.- Returns:
- the font applied to the scale label.
 
 - 
getTextOffsetpublic double getTextOffset() Returns the offset of the text for scale item.- Returns:
- the offset of the text for scale item.
 
 
- 
 
-