Package org.pepstock.charba.client.data
Interface HasLabels
-
- All Known Implementing Classes:
AbstractScale,Data,ExtendedScale,GlobalScale,Scale
public interface HasLabelsManages the LABELS properties for datasets and options which this property is required.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LabelsgetLabels()Returns the labels.default LabelsgetLabels(boolean binding)Returns the labels for axes.LabelsHandlergetLabelsHandler()Returns an labels option handler instance.default voidsetLabels(String... labels)Sets the labels of the data.default voidsetLabels(List<String> labels)Sets the labels of the data.default voidsetLabels(Labels labels)Sets the labels of the data.
-
-
-
Method Detail
-
getLabelsHandler
LabelsHandler getLabelsHandler()
Returns an labels option handler instance.- Returns:
- an labels option handler instance
-
setLabels
default void setLabels(String... labels)
Sets the labels of the data.- Parameters:
labels- array of labels
-
setLabels
default void setLabels(List<String> labels)
Sets the labels of the data.- Parameters:
labels- list of labels
-
setLabels
default void setLabels(Labels labels)
Sets the labels of the data.- Parameters:
labels- labels object to manage also multi-line labels
-
getLabels
default Labels getLabels()
Returns the labels.- Returns:
- the labels
-
getLabels
default Labels getLabels(boolean binding)
Returns the labels for axes.- Parameters:
binding- iftruebinds the new labels in the container- Returns:
- the labels for axes
-
-