Package org.pepstock.charba.client.data
Interface HasLabels
-
- All Known Implementing Classes:
AbstractScale
,Data
,ExtendedScale
,GlobalScale
,Scale
public interface HasLabels
Manages 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 Labels
getLabels()
Returns the labels.default Labels
getLabels(boolean binding)
Returns the labels for axes.LabelsHandler
getLabelsHandler()
Returns an labels option handler instance.default void
setLabels(String... labels)
Sets the labels of the data.default void
setLabels(List<String> labels)
Sets the labels of the data.default void
setLabels(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
- iftrue
binds the new labels in the container- Returns:
- the labels for axes
-
-