public final class Plugins extends Object implements ConfigurationElement
Constructor and Description |
---|
Plugins() |
Modifier and Type | Method and Description |
---|---|
void |
add(Plugin plugin)
Adds a new plugin to the chart.
If the chart is already initialized, to get this update the chart must be drawn again. |
boolean |
has(String id)
Returns
true if a plugin is already added, otherwise false . |
void |
load(IsChart chart,
Configuration configuration)
Called to enable to load into a configuration object the specific configuration item (by native object).
|
void |
onChartConfigure(Configuration config,
IsChart chart)
Invokes the on configuration method to inform the plugins that the chart is going to be initialized.
|
void |
remove(String id)
Removes a plugin from the chart.
If the chart is already initialized, to get this update the chart must be drawn again. |
public void add(Plugin plugin)
plugin
- plugin instancepublic boolean has(String id)
true
if a plugin is already added, otherwise false
.id
- plugin id to search.true
if a plugin is already added, otherwise false
public void remove(String id)
id
- plugin id to remove.public void onChartConfigure(Configuration config, IsChart chart)
config
- configuration item. Added only to reduce visibility of public method.chart
- instance of the chartpublic void load(IsChart chart, Configuration configuration)
ConfigurationElement
load
in interface ConfigurationElement
chart
- chart instanceconfiguration
- chart configuration instance