public final class Charts extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addLifecycleListener(ChartsLifecycleListener listener)
Adds new charts life cycle listener instance in the collection.
|
static IsChart |
get(String chartId)
Returns the chart instance by its id.
|
static Chart |
getNative(IsChart chart)
Returns the CHART.JS chart instance by chart instance.
|
static Chart |
getNative(String chartId)
Returns the CHART.JS chart instance by id.
|
static boolean |
hasNative(IsChart chart)
Returns
true if there is a CHART.JS chart instance by chart instance. |
static boolean |
hasNative(String chartId)
Returns
true if there is a CHART.JS chart instance by id. |
static void |
removeLifecycleListener(ChartsLifecycleListener listener)
Removes a charts life cycle listener instance from collection.
|
public static void addLifecycleListener(ChartsLifecycleListener listener)
listener
- chart life cycle listener instancepublic static void removeLifecycleListener(ChartsLifecycleListener listener)
listener
- chart life cycle listener instancepublic static IsChart get(String chartId)
chartId
- chart idnull
if not exist.public static boolean hasNative(IsChart chart)
true
if there is a CHART.JS chart instance by chart instance.chart
- chart instancetrue
if there is a CHART.JS chart instance by chart instancepublic static boolean hasNative(String chartId)
true
if there is a CHART.JS chart instance by id.chartId
- chart idtrue
if there is a CHART.JS chart instance by idpublic static Chart getNative(IsChart chart)
chart
- chart instancenull
if not exist.