public abstract class AbstractPieOptions extends ConfigurationOptions
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPieOptions(IsChart chart,
ChartOptions defaultvalues)
Builds the object storing the chart instance and defaults.
|
| Modifier and Type | Method and Description |
|---|---|
IsChart |
getChart()
Returns the chart instance
|
double |
getCircumference()
Returns the the sweep to allow arcs to cover.
|
protected T |
getConfiguration()
Returns the configuration element.
|
double |
getCutoutPercentage()
Returns the the percentage of the chart that is cut out of the middle.
|
double |
getRotation()
Returns the starting angle to draw arcs from.
|
void |
merge(NativeObjectContainer source,
String property)
Merge a native object into this one with a specific property name.
This is used by plugins implementation (native java script ones) when they are not using the standard way to add plugin configuration into options of chart. |
static void |
register(IsChart chart,
org.pepstock.charba.client.configuration.IsEventProvider provider)
Adds the event provider implementation as handlers of chart.
|
void |
setCircumference(double circumference)
Sets the sweep to allow arcs to cover.
|
protected void |
setConfiguration(T configuration) |
void |
setCutoutPercentage(double cutoutPercentage)
Sets the percentage of the chart that is cut out of the middle.
|
void |
setRotation(double rotation)
Sets the starting angle to draw arcs from.
|
String |
toJSON()
Returns the JSON representation of the object.
|
getAnimation, getAspectRatio, getDevicePixelRatio, getElements, getEvents, getHover, getLayout, getLegend, getLegendCallback, getPlugins, getResponsiveAnimationDuration, getTitle, getTooltips, hasAxisClickHandlers, hasDatasetSelectionHandlers, hasTitleClickHandlers, isMaintainAspectRatio, isResponsive, load, onAdd, onRemove, setAspectRatio, setDevicePixelRatio, setEvents, setLegendCallback, setMaintainAspectRatio, setResponsive, setResponsiveAnimationDurationprotected AbstractPieOptions(IsChart chart, ChartOptions defaultvalues)
chart - chart instancedefaultvalues - defaults of chartpublic void setCutoutPercentage(double cutoutPercentage)
cutoutPercentage - the percentage of the chart that is cut out of the middle.public double getCutoutPercentage()
public void setRotation(double rotation)
rotation - starting angle to draw arcs from.public double getRotation()
public void setCircumference(double circumference)
circumference - the sweep to allow arcs to cover.public double getCircumference()
public static void register(IsChart chart, org.pepstock.charba.client.configuration.IsEventProvider provider)
chart - chart instanceprovider - event provider implmentationprotected final void setConfiguration(T configuration)
configuration - the configuration to setprotected final T getConfiguration()
public final void merge(NativeObjectContainer source, String property)
source - native object container to addproperty - property namepublic final String toJSON()
public final IsChart getChart()