public final class ChartNode extends Object
Constructor and Description |
---|
ChartNode(Chart chart)
Creates the object wrapping a CHART instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getAspectRatio()
Returns the aspect ratio.
|
int |
getBorderWidth()
Returns the border width value.
|
ChartAreaNode |
getChartArea()
Returns the chart area item.
|
double |
getCurrentDevicePixelRatio()
Returns the current device pixel ratio.
|
int |
getHeight()
Returns the height in pixel.
|
int |
getId()
Returns the CHART JS chart ID.
|
double |
getInnerRadius()
Returns the inner radius value.
|
LegendNode |
getLegend()
Returns the legend item.
|
int |
getOffsetX()
Returns the offset X value.
|
int |
getOffsetY()
Returns the offset Y value.
|
OptionsNode |
getOptions()
Returns the options item.
|
double |
getOuterRadius()
Returns the outer radius value.
|
double |
getRadiusLength()
Returns the radius length value.
|
ScalesNode |
getScales()
Returns the scales item.
|
TitleNode |
getTitle()
Returns the title item.
|
TooltipNode |
getTooltip()
Returns the tooltip item.
|
int |
getWidth()
Returns the width in pixel.
|
boolean |
isAnimating()
Returns if the chart is animating or not.
|
boolean |
isInitialized()
Returns if CHART.JS chart instance has been initialized.
|
String |
toJSON()
Returns the string JSON representation of the object.
|
public ChartNode(Chart chart)
chart
- CHART.JS CHART instancepublic boolean isInitialized()
true
if initialized, otherwise false
public OptionsNode getOptions()
public LegendNode getLegend()
public ScalesNode getScales()
public ChartAreaNode getChartArea()
public TitleNode getTitle()
public TooltipNode getTooltip()
public int getId()
UndefinedValues.INTEGER
.public int getWidth()
UndefinedValues.INTEGER
.public int getHeight()
UndefinedValues.INTEGER
.public double getAspectRatio()
UndefinedValues.DOUBLE
.public double getCurrentDevicePixelRatio()
UndefinedValues.DOUBLE
.public boolean isAnimating()
UndefinedValues.BOOLEAN
.public int getBorderWidth()
UndefinedValues.INTEGER
.public double getOuterRadius()
UndefinedValues.DOUBLE
.public double getInnerRadius()
UndefinedValues.DOUBLE
.public double getRadiusLength()
UndefinedValues.DOUBLE
.public int getOffsetX()
UndefinedValues.INTEGER
.public int getOffsetY()
UndefinedValues.INTEGER
.public final String toJSON()