public class DefaultOptions extends Object implements IsDefaultOptions
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultOptions()
Creates the object.
|
| Modifier and Type | Method and Description |
|---|---|
IsDefaultAnimation |
getAnimation()
Returns the animation defaults.
|
double |
getAspectRatio()
Canvas aspect ratio (i.e.
|
double |
getCircumference()
Returns the the sweep to allow arcs to cover.
|
double |
getCutoutPercentage()
Returns the the percentage of the chart that is cut out of the middle.
|
String |
getDefaultColorAsString()
Returns the default color to use in the chart, on all objects, if not override by the specific configuration.
|
String |
getDefaultFontColorAsString()
Returns the default font color to use in the chart, on all objects, if not override by the specific configuration.
|
String |
getDefaultFontFamily()
Returns the font family to use in the chart, on all objects, if not override by the specific configuration, follows CSS
font-family options.
|
int |
getDefaultFontSize()
Returns the font size to use in the chart, on all objects, if not override by the specific configuration.
|
FontStyle |
getDefaultFontStyle()
Returns the font style to use in the chart, on all objects, if not override by the specific configuration.
|
double |
getDevicePixelRatio()
The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g.
|
IsDefaultElements |
getElements()
Returns the elements defaults.
|
IsDefaultHover |
getHover()
Returns the hover defaults.
|
IsDefaultLayout |
getLayout()
Returns the layout defaults.
|
IsDefaultLegend |
getLegend()
Returns the legend defaults.
|
int |
getResponsiveAnimationDuration()
Returns the duration in milliseconds it takes to animate to new size after a resize event.
|
double |
getRotation()
Returns the starting angle to draw arcs from.
|
double |
getStartAngle()
Returns the starting angle to draw arcs for the first item in a dataset.
|
IsDefaultTitle |
getTitle()
Returns the title defaults.
|
IsDefaultTooltips |
getTooltips()
Returns the tooltips defaults.
|
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.
|
boolean |
isShowLines()
If false, the lines between points are not drawn.
|
boolean |
isSpanGaps()
If false, NaN data causes a break in the line.
|
protected DefaultOptions()
public IsDefaultAnimation getAnimation()
IsDefaultOptionsgetAnimation in interface IsDefaultOptionspublic IsDefaultLayout getLayout()
IsDefaultOptionsgetLayout in interface IsDefaultOptionspublic IsDefaultElements getElements()
IsDefaultOptionsgetElements in interface IsDefaultOptionspublic IsDefaultHover getHover()
IsDefaultOptionsgetHover in interface IsDefaultOptionspublic IsDefaultTitle getTitle()
IsDefaultOptionsgetTitle in interface IsDefaultOptionspublic IsDefaultLegend getLegend()
IsDefaultOptionsgetLegend in interface IsDefaultOptionspublic IsDefaultTooltips getTooltips()
IsDefaultOptionsgetTooltips in interface IsDefaultOptionspublic boolean isResponsive()
IsDefaultOptionsisResponsive in interface IsDefaultOptionspublic int getResponsiveAnimationDuration()
IsDefaultOptionsgetResponsiveAnimationDuration in interface IsDefaultOptionspublic boolean isMaintainAspectRatio()
IsDefaultOptionsisMaintainAspectRatio in interface IsDefaultOptionspublic double getAspectRatio()
IsDefaultOptionsgetAspectRatio in interface IsDefaultOptionspublic double getDevicePixelRatio()
IsDefaultOptionsgetDevicePixelRatio in interface IsDefaultOptionspublic String getDefaultColorAsString()
IsDefaultOptionsgetDefaultColorAsString in interface IsDefaultOptionspublic String getDefaultFontColorAsString()
IsDefaultOptionsgetDefaultFontColorAsString in interface IsDefaultOptionspublic int getDefaultFontSize()
IsDefaultOptionsgetDefaultFontSize in interface IsDefaultOptionspublic FontStyle getDefaultFontStyle()
IsDefaultOptionsgetDefaultFontStyle in interface IsDefaultOptionspublic String getDefaultFontFamily()
IsDefaultOptionsgetDefaultFontFamily in interface IsDefaultOptionspublic boolean isShowLines()
IsDefaultOptionsisShowLines in interface IsDefaultOptionspublic boolean isSpanGaps()
IsDefaultOptionsisSpanGaps in interface IsDefaultOptionspublic double getCutoutPercentage()
IsDefaultOptionsgetCutoutPercentage in interface IsDefaultOptionspublic double getRotation()
IsDefaultOptionsgetRotation in interface IsDefaultOptionspublic double getCircumference()
IsDefaultOptionsgetCircumference in interface IsDefaultOptionspublic double getStartAngle()
IsDefaultOptionsgetStartAngle in interface IsDefaultOptions