public final class DefaultChartPlugins extends Object implements IsDefaultPlugins
Constructor and Description |
---|
DefaultChartPlugins(IsDefaultPlugins plugins)
Creates the object by plugins option element instance.
|
Modifier and Type | Method and Description |
---|---|
<T extends AbstractPluginOptions> |
getOptions(String pluginId,
AbstractPluginOptionsFactory<T> factory)
Returns the plugin options, if exist.
|
boolean |
hasOptions(String pluginId)
Checks if there is any options for a specific plugin, by its id.
|
boolean |
isEnabled(String pluginId)
Returns if a global plugin is enabled or not.
|
public DefaultChartPlugins(IsDefaultPlugins plugins)
plugins
- plugins option element instance.public boolean isEnabled(String pluginId)
IsDefaultPlugins
isEnabled
in interface IsDefaultPlugins
pluginId
- plugin id.false
if a global plugin is not enabled otherwise true
.public boolean hasOptions(String pluginId)
IsDefaultPlugins
hasOptions
in interface IsDefaultPlugins
pluginId
- plugin id.true
if there is an options, otherwise false
.public <T extends AbstractPluginOptions> T getOptions(String pluginId, AbstractPluginOptionsFactory<T> factory)
IsDefaultPlugins
null
is returned.getOptions
in interface IsDefaultPlugins
T
- type of native object container to returnpluginId
- plugin id.factory
- factory instance to create a native object container.null
is returned.