Package org.pepstock.charba.client
Class ChartNode
- java.lang.Object
- 
- org.pepstock.charba.client.ChartNode
 
- 
 public final class ChartNode extends Object This is a wrapper of CHART.JS CHART instance in order to provide all properties of chart java script instance, set at runtime.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAspectRatio()Returns the aspect ratio.ChartAreaNodegetChartArea()Returns the chart area item.doublegetCurrentDevicePixelRatio()Returns the current device pixel ratio.intgetHeight()Returns the height in pixel.intgetId()Returns the CHART JS chart ID.LegendNodegetLegend()Returns the legend item.OptionsNodegetOptions()Returns the options item.ScalesNodegetScales()Returns the scales item.SubtitleNodegetSubtitle()Returns the subtitle item.TitleNodegetTitle()Returns the title item.TooltipNodegetTooltip()Returns the tooltip item.intgetWidth()Returns the width in pixel.booleanisInitialized()Returns if CHART.JS chart instance has been initialized.StringtoJSON()Returns the string JSON representation of the object.
 
- 
- 
- 
Method Detail- 
isInitializedpublic boolean isInitialized() Returns if CHART.JS chart instance has been initialized.- Returns:
- trueif initialized, otherwise- false
 
 - 
getOptionspublic OptionsNode getOptions() Returns the options item.- Returns:
- the options item.
 
 - 
getLegendpublic LegendNode getLegend() Returns the legend item.- Returns:
- the legend item.
 
 - 
getScalespublic ScalesNode getScales() Returns the scales item.- Returns:
- the scales item.
 
 - 
getChartAreapublic ChartAreaNode getChartArea() Returns the chart area item.- Returns:
- the chart area item.
 
 - 
getSubtitlepublic SubtitleNode getSubtitle() Returns the subtitle item.- Returns:
- the subtitle item.
 
 - 
getTitlepublic TitleNode getTitle() Returns the title item.- Returns:
- the title item.
 
 - 
getTooltippublic TooltipNode getTooltip() Returns the tooltip item.- Returns:
- the tooltip item.
 
 - 
getIdpublic int getId() Returns the CHART JS chart ID.- Returns:
- the CHART JS chart ID.
 
 - 
getWidthpublic int getWidth() Returns the width in pixel.- Returns:
- the width in pixel.
 
 - 
getHeightpublic int getHeight() Returns the height in pixel.- Returns:
- the height in pixel.
 
 - 
getAspectRatiopublic double getAspectRatio() Returns the aspect ratio.- Returns:
- the aspect ratio.
 
 - 
getCurrentDevicePixelRatiopublic double getCurrentDevicePixelRatio() Returns the current device pixel ratio.- Returns:
- the current device pixel ratio.
 
 - 
toJSONpublic String toJSON() Returns the string JSON representation of the object.- Returns:
- the string JSON representation of the object.
 
 
- 
 
-