public final class DefaultGlobalOptions extends AbstractDefaultOptions implements IsDefaultScaledOptions
| Constructor and Description |
|---|
DefaultGlobalOptions(GlobalOptions globalOptions)
Creates the object by global options and defaults scaled options
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAspectRatio()
Canvas aspect ratio (i.e.
|
String |
getBackgroundColorAsString()
Returns the default background color to use in the chart, on all objects, if not override by the specific configuration.
|
String |
getBorderColorAsString()
Returns the default border color to use in the chart, on all objects, if not override by the specific configuration.
|
double |
getCircumference()
Returns the the sweep to allow arcs to cover.
|
String |
getColorAsString()
Returns the default color to use in the chart, on all objects, if not override by the specific configuration.
|
double |
getCutout()
Returns the portion of the chart that is cut out of the middle.
As Double, it is considered to be pixels. |
String |
getCutoutPercentage()
Returns the portion of the chart that is cut out of the middle.
As String and ending with '%', percentage of the chart radius. |
double |
getDevicePixelRatio()
The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g.
|
Set<Event> |
getEvents()
Returns the browser events that the chart should listen to.
|
IndexAxis |
getIndexAxis()
Returns the base axis for the dataset, only for bar options.
|
CLocale |
getLocale()
Returns the locale instance for internationalization.
|
double |
getRadius()
Returns the outer radius of the chart.
As Double, it is considered to be pixels. |
String |
getRadiusPercentage()
Returns the outer radius of the chart.
As String and ending with '%', percentage of the maximum radius. |
double |
getResizeDelay()
Returns the delay the resize update by give amount of milliseconds.
This can ease the resize process by debouncing update of the elements. |
double |
getRotation()
Returns the starting angle to draw arcs from.
|
IsDefaultScales |
getScales()
Returns the scale/axis defaults.
|
boolean |
isDestroyOnDetach()
Returns
true if the chart is configured to be destroyed on the attach of DIV element, otherwise false. |
boolean |
isDrawOnAttach()
Returns
true if the chart is configured to be drawn on the attach of DIV element, 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.
|
boolean |
isShowLine()
If false, the lines between points are not drawn.
|
boolean |
isSkipNull()
If true, null or undefined values will not be drawn.
|
boolean |
isSpanGaps()
If false,
Double.NaN data causes a break in the line. |
getAnimation, getAnimations, getDatasets, getDecimation, getElements, getFiller, getFont, getHover, getInteraction, getLayout, getLegend, getPlugins, getSubtitle, getTitle, getTooltips, getTransitionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAspectRatio, getBackgroundColorAsString, getBorderColorAsString, getCircumference, getColorAsString, getCutout, getCutoutPercentage, getDatasets, getDecimation, getDevicePixelRatio, getElements, getEvents, getFiller, getFont, getHover, getIndexAxis, getInteraction, getLayout, getLegend, getLocale, getPlugins, getRadius, getRadiusPercentage, getResizeDelay, getRotation, getSubtitle, getTitle, getTooltips, isDestroyOnDetach, isDrawOnAttach, isMaintainAspectRatio, isResponsive, isShowLine, isSkipNull, isSpanGapsgetTransitionsgetAnimation, getAnimationspublic DefaultGlobalOptions(GlobalOptions globalOptions)
globalOptions - global options instance used as default.public IsDefaultScales getScales()
IsDefaultScaledOptionsgetScales in interface IsDefaultScaledOptionspublic Set<Event> getEvents()
IsDefaultOptionspublic CLocale getLocale()
IsDefaultOptionspublic final boolean isResponsive()
IsDefaultOptionspublic final boolean isMaintainAspectRatio()
IsDefaultOptionspublic final double getAspectRatio()
IsDefaultOptionspublic double getResizeDelay()
IsDefaultOptionspublic final double getDevicePixelRatio()
IsDefaultOptionspublic final String getColorAsString()
IsDefaultOptionspublic String getBackgroundColorAsString()
IsDefaultOptionspublic String getBorderColorAsString()
IsDefaultOptionspublic final boolean isShowLine()
IsDefaultOptionspublic final boolean isSpanGaps()
IsDefaultOptionsDouble.NaN data causes a break in the line.Double.NaN data causes a break in the line.public double getCutout()
IsDefaultOptionsDouble, it is considered to be pixels.Double, it is considered to be pixels.public String getCutoutPercentage()
IsDefaultOptionsString and ending with '%', percentage of the chart radius.String and ending with '%', percentage of the chart radius.public double getRadius()
IsDefaultOptionsDouble, it is considered to be pixels.Double, it is considered to be pixels.public String getRadiusPercentage()
IsDefaultOptionsString and ending with '%', percentage of the maximum radius.String and ending with '%', percentage of the maximum radius.public final double getRotation()
IsDefaultOptionspublic final double getCircumference()
IsDefaultOptionspublic final boolean isDrawOnAttach()
IsDefaultOptionstrue if the chart is configured to be drawn on the attach of DIV element, otherwise false.true if the chart is configured to be drawn on the attach of DIV element, otherwise false.public final boolean isDestroyOnDetach()
IsDefaultOptionstrue if the chart is configured to be destroyed on the attach of DIV element, otherwise false.true if the chart is configured to be destroyed on the attach of DIV element, otherwise false.public final boolean isSkipNull()
IsDefaultOptionspublic final IndexAxis getIndexAxis()
IsDefaultOptions