public final class LabelsOptions extends AbstractPluginOptions
LabelsPlugin.ID
plugin options, both at chart and global level.AbstractPluginOptions.Property
Constructor and Description |
---|
LabelsOptions()
Creates new
LabelsPlugin.ID plugin options. |
LabelsOptions(IsChart chart)
Creates new
LabelsPlugin.ID plugin options, relating to chart instance for default. |
Modifier and Type | Method and Description |
---|---|
Label |
createLabel(LabelId id)
Creates new label (if not exist) using the label if passed as argument.
|
Label |
createLabel(String id)
Creates new label (if not exist) using the label if passed as argument.
|
Label |
getLabel(LabelId id)
Returns the label with the id passed as argument or
null if not exist. |
Label |
getLabel(String id)
Returns the label with the id passed as argument or
null if not exist. |
List<Label> |
getLabels()
Returns the collection of labels.
|
boolean |
hasLabel(LabelId id)
Returns
true if the label with the id passed as argument exists. |
boolean |
hasLabel(String id)
Returns
true if the label with the id passed as argument exists. |
void |
removeLabel(LabelId id)
Removes the label by the id passed as argument, if exists.
|
void |
removeLabel(String id)
Removes the label by the id passed as argument, if exists.
|
applyingDefaults, applyingDefaults, getEvents, getId, getPluginId, loadGlobalsPluginOptions, setEvents, setEvents, store, store, store, store
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, 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
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, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public LabelsOptions()
LabelsPlugin.ID
plugin options.public LabelsOptions(IsChart chart)
LabelsPlugin.ID
plugin options, relating to chart instance for default.chart
- chart instance related to the plugin optionspublic Label createLabel(String id)
id
- label id to usepublic Label createLabel(LabelId id)
id
- label id to usepublic boolean hasLabel(String id)
true
if the label with the id passed as argument exists.id
- label id to checktrue
if the label with the id passed as argument existspublic boolean hasLabel(LabelId id)
true
if the label with the id passed as argument exists.id
- label id to checktrue
if the label with the id passed as argument existspublic void removeLabel(String id)
id
- label id to checkpublic void removeLabel(LabelId id)
id
- label id to checkpublic List<Label> getLabels()
public Label getLabel(String id)
null
if not exist.id
- label id to use to retrieve the labelnull
if not exist