public final class Plugins
extends java.lang.Object
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 teh chart must be drawn again. |
JsObjectArrayList<GenericJavaScriptObject> |
getArrayList()
Creates a java script array (mapped into a list) with all plugins added to the chart.
|
void |
remove(java.lang.String id)
Removes a plugin from the chart.
If the chart is already initialized, to get this update teh chart must be drawn again. |
public Plugins(AbstractChart<?,?> chart)
chart
- chart instancepublic void add(Plugin plugin) throws InvalidPluginIdException
plugin
- plugin instanceInvalidPluginIdException
- if the plugin id is not correct.public void remove(java.lang.String id)
id
- plugin id to remove.public JsObjectArrayList<GenericJavaScriptObject> getArrayList()