public final class Controllers extends Object
chart.controllers
.Modifier and Type | Method and Description |
---|---|
boolean |
extend(Controller controller)
Registers a controller as global, to apply to all charts.
|
static Controllers |
get()
Singleton method to get static instance.
|
ControllerType |
getTypeByString(String type)
Returns the controller type by name as string.
|
Set<String> |
getTypeNames()
Gets all global registered controllers types.
|
boolean |
isRegistered(String type)
Checks if the controller is registered by its type.
|
public static Controllers get()
public boolean extend(Controller controller)
controller
- controller instancetrue
if registered, otherwise false
if the controller is already registered with the controller type of controller instance.public boolean isRegistered(String type)
type
- type of new chart as string.true
if registered, otherwise false
.public Set<String> getTypeNames()
public ControllerType getTypeByString(String type)
type
- controller type as string.null
if does not exist.