public final class Plugins extends Object implements ConfigurationElement
| Constructor and Description |
|---|
Plugins(AbstractChart<?,?> chart)
Builds the object storing the chart instance.
|
| 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(AbstractChart<?,?> chart,
Configuration configuration)
Called to enable to load into a configuration object the specific configuration item (by native object).
|
void |
onChartConfigure(Configuration config,
AbstractChart<?,?> 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 Plugins(AbstractChart<?,?> chart)
chart - chart instancepublic 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 id)
id - plugin id to remove.public void onChartConfigure(Configuration config, AbstractChart<?,?> chart)
config - configuration item. Added only to reduce visibility of public method.chart - instance of the chartpublic void load(AbstractChart<?,?> chart, Configuration configuration)
ConfigurationElementload in interface ConfigurationElementchart - chart instanceconfiguration - chart configuration instance