public final class GlobalPlugins
extends java.lang.Object
chart.plugins
.Constructor and Description |
---|
GlobalPlugins() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getIds()
Gets all global registered plugins ids.
|
boolean |
register(Plugin plugin)
Registers a plugin as global, to apply to all charts.
|
boolean |
unregister(java.lang.String pluginId)
Unregisters a global plugin.
|
public boolean register(Plugin plugin) throws InvalidPluginIdException
plugin
- plugin instancetrue
if registered, otherwise false
if the plugin is already registered with the plugin id of plugin instance.InvalidPluginIdException
- if the plugin id is not correct.public boolean unregister(java.lang.String pluginId) throws InvalidPluginIdException
pluginId
- plugin instancetrue
if unregistered, otherwise false
if the plugin is not a custom one.InvalidPluginIdException
- if the plugin id is not correct.public java.util.Set<java.lang.String> getIds()