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 another plugin instance with the same id has been already loaded, it will remove, storing the new one. 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 in the 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 pluginId)
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 falsepublic void remove(String pluginId)
pluginId - 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)
ConfigurationElementload in interface ConfigurationElementchart - chart instanceconfiguration - chart configuration instance