Package | Description |
---|---|
org.pepstock.charba.client.labels |
Contains all classes to use
LabelsPlugin.ID plugin (AKA chartjs-plugin-labels.js ) available for CHART.JS. |
Modifier and Type | Method and Description |
---|---|
static LabelId |
LabelId.create(String id)
Returns a key instance by its string value.
|
LabelId |
Label.getId()
Returns the id of label.
|
Modifier and Type | Method and Description |
---|---|
static void |
LabelId.checkIfValid(LabelId id)
Checks if id passed as argument is not
null and its value is not null as well and could be a valid label configuration object id.If not, throw a IllegalArgumentException . |
LabelBuilder |
LabelsOptionsBuilder.createLabel(LabelId id)
Returns new options builder for new label identified by id.
|
Label |
LabelsOptions.createLabel(LabelId id)
Creates new label (if not exist) using the label if passed as argument.
|
LabelBuilder |
LabelsOptionsBuilder.getLabel(LabelId id)
Returns the options builder for label identified by id
|
Label |
LabelsOptions.getLabel(LabelId id)
Returns the label with the id passed as argument or
null if not exist. |
boolean |
LabelsOptions.hasLabel(LabelId id)
Returns
true if the label with the id passed as argument exists. |
static boolean |
LabelId.isValid(LabelId id)
Returns
true if id passed as argument is not null and its value is not null as well and could be a valid label configuration object
id. |
void |
LabelsOptions.removeLabel(LabelId id)
Removes the label by the id passed as argument, if exists.
|
Constructor and Description |
---|
Label(LabelId id)
Creates new
LabelsPlugin.ID plugin label, using the id passed as argument as label id. |