public abstract class ConfigurationOptions extends EventProvider<ExtendedOptions> implements ConfigurationElement
charbaId property key.| Modifier and Type | Method and Description |
|---|---|
protected <H extends EventHandler> |
addHandler(GwtEvent.Type<H> type)
Notifies the event provider when a new handler has been added.
|
Animation |
getAnimation()
Returns the animation element.
|
double |
getAspectRatio()
Canvas aspect ratio (i.e.
|
AbstractChart<?,?> |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
double |
getDevicePixelRatio()
The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g.
|
Elements |
getElements()
Returns the elements element.
|
List<Event> |
getEvents()
Returns the browser events that the chart should listen to for tooltips and hovering.
|
Hover |
getHover()
Returns the hover element.
|
Layout |
getLayout()
Returns the layout element.
|
Legend |
getLegend()
Returns the legend element.
|
LegendCallback |
getLegendCallback()
Returns the legend callback instance
|
Plugins |
getPlugins()
Returns the plugins element.
|
int |
getResponsiveAnimationDuration()
Returns the duration in milliseconds it takes to animate to new size after a resize event.
|
Title |
getTitle()
Returns the title element.
|
Tooltips |
getTooltips()
Returns the tooltips element.
|
boolean |
hasDatasetSelectionHandlers()
Returns
true if there is any dataset selection handler, otherwise false. |
boolean |
isMaintainAspectRatio()
Returns the the maintaining of the original canvas aspect ratio (width / height) when resizing.
|
boolean |
isResponsive()
Returns the resizing of the chart canvas when its container does.
|
void |
load(AbstractChart<?,?> chart,
Configuration configuration)
Called to enable to load into a configuration object the specific configuration item (by native object).
|
protected <H extends EventHandler> |
removeHandler(GwtEvent.Type<H> type)
Notifies the event provider when a new handler has been unregistered
|
void |
setAspectRatio(double ratio)
Canvas aspect ratio (i.e.
|
protected void |
setConfiguration(T configuration) |
void |
setDevicePixelRatio(double ratio)
The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g.
|
void |
setEvents(Event... events)
Sets the browser events that the chart should listen to for tooltips and hovering.
|
void |
setLegendCallback(LegendCallback legendCallback)
Sets the legend callback instance
|
void |
setMaintainAspectRatio(boolean maintainAspectRatio)
Sets the maintaining of the original canvas aspect ratio (width / height) when resizing.
|
void |
setResponsive(boolean responsive)
Sets the resizing of the chart canvas when its container does.
|
void |
setResponsiveAnimationDuration(int milliseconds)
Sets the duration in milliseconds it takes to animate to new size after a resize event.
|
String |
toJSON()
Returns the JSON representation of the object.
|
onAdd, onRemovepublic Animation getAnimation()
public Hover getHover()
public Layout getLayout()
public Legend getLegend()
public Title getTitle()
public Tooltips getTooltips()
public Elements getElements()
public Plugins getPlugins()
public void setEvents(Event... events)
events - the browser events that the chart should listen to for tooltips and hovering.public List<Event> getEvents()
public void setResponsive(boolean responsive)
responsive - the resizing of the chart canvas when its container does.public boolean isResponsive()
public void setResponsiveAnimationDuration(int milliseconds)
milliseconds - the duration in milliseconds it takes to animate to new size after a resize event.public int getResponsiveAnimationDuration()
public void setMaintainAspectRatio(boolean maintainAspectRatio)
maintainAspectRatio - the maintaining of the original canvas aspect ratio (width / height) when resizing.public boolean isMaintainAspectRatio()
public void setAspectRatio(double ratio)
ratio - the aspect ratio.public double getAspectRatio()
public void setDevicePixelRatio(double ratio)
ratio - the pixel ratio.public double getDevicePixelRatio()
public final boolean hasDatasetSelectionHandlers()
true if there is any dataset selection handler, otherwise false.true if there is any dataset selection handler, otherwise false.protected final <H extends EventHandler> void addHandler(GwtEvent.Type<H> type)
EventProvideraddHandler in class EventProvider<ExtendedOptions>H - type of event handlertype - type of eventprotected final <H extends EventHandler> void removeHandler(GwtEvent.Type<H> type)
EventProviderremoveHandler in class EventProvider<ExtendedOptions>H - type of event handlertype - type of event handlerpublic LegendCallback getLegendCallback()
public void setLegendCallback(LegendCallback legendCallback)
legendCallback - the legendCallBack to setpublic void load(AbstractChart<?,?> chart, Configuration configuration)
ConfigurationElementload in interface ConfigurationElementchart - chart instanceconfiguration - chart configuration instanceprotected final void setConfiguration(T configuration)
configuration - the configuration to setprotected final T getConfiguration()
public final String toJSON()
public final AbstractChart<?,?> getChart()