Package org.pepstock.charba.client
Class RadarChart
- java.lang.Object
-
- org.pepstock.charba.client.events.HandlerManager
-
- org.pepstock.charba.client.AbstractChart
-
- org.pepstock.charba.client.RadarChart
-
- All Implemented Interfaces:
HasAxes,HasRadialAxis,IsChart,IsDatasetCreator<RadarDataset>
public class RadarChart extends AbstractChart implements IsDatasetCreator<RadarDataset>, HasRadialAxis
RADAR chart implementation.
A radar chart is a way of showing multiple data points and the variation between them.
They are often useful for comparing the points of two or more different data sets.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description RadarChart()Builds the object.protectedRadarChart(Type extendedType)Builds the chart.
This is must be extended for controller which are based on this type of chart.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckDataset(Dataset dataset)Returnstrueif the dataset can be managed by a this chart type.protected intgetMaximumAxesCount()Returns the maximum amount of axes that the chart can manage.RadarOptionsgetOptions()Returns the options of chart.RadarDatasetnewDataset(boolean hidden)Creates a new dataset related to chart type.-
Methods inherited from class org.pepstock.charba.client.AbstractChart
addHandler, applyConfiguration, checkAxes, checkDatasets, clear, createAndSetTimer, destroy, draw, getActiveElements, getBaseType, getCanvas, getChartElement, getData, getDatasetAtEvent, getDatasetItem, getDefaultChartOptions, getDrawCount, getElementAtEvent, getElementAtEvent, getElementsAtEvent, getElementsAtEvent, getId, getInitialCursor, getMaximumDatasetsCount, getNode, getPlugins, getSource, getTimer, getTooltipActiveElements, getType, getVisibleDatasetCount, getWholeOptions, hide, hide, isChartAttached, isDatasetVisible, isDataVisible, isDestroyOnDetach, isDrawOnAttach, isInitialized, onAttach, onDetach, reconfigure, reconfigure, reconfigure, removeCanvasPreventDefault, render, reset, resetActiveElements, resetTooltipActiveElements, resize, resize, setActiveElements, setActiveElements, setDatasetVisibility, setDestroyOnDetach, setDrawOnAttach, setTooltipActiveElements, setTooltipActiveElements, setTooltipActiveElements, setTooltipActiveElements, show, show, stop, toBase64Image, toggleDataVisibility, update, update, update
-
Methods inherited from class org.pepstock.charba.client.events.HandlerManager
fireEvent, getHandlerCount, isEventHandled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.HasRadialAxis
checkAxis
-
Methods inherited from interface org.pepstock.charba.client.IsChart
fireEvent, getHandlerCount, isEventHandled, toBase64Image, toBase64Image, toBase64Image
-
Methods inherited from interface org.pepstock.charba.client.IsDatasetCreator
newDataset
-
-
-
-
Constructor Detail
-
RadarChart
public RadarChart()
Builds the object.
-
RadarChart
protected RadarChart(Type extendedType)
Builds the chart.
This is must be extended for controller which are based on this type of chart.- Parameters:
extendedType- type of chart
-
-
Method Detail
-
getOptions
public RadarOptions getOptions()
Description copied from interface:IsChartReturns the options of chart.- Specified by:
getOptionsin interfaceIsChart- Returns:
- the options of chart.
-
newDataset
public RadarDataset newDataset(boolean hidden)
Description copied from interface:IsDatasetCreatorCreates a new dataset related to chart type.- Specified by:
newDatasetin interfaceIsDatasetCreator<RadarDataset>- Parameters:
hidden- iftrue, it will be initially hidden.- Returns:
- a new dataset related to chart type.
-
checkDataset
protected boolean checkDataset(Dataset dataset)
Description copied from class:AbstractChartReturnstrueif the dataset can be managed by a this chart type.- Specified by:
checkDatasetin classAbstractChart- Parameters:
dataset- dataset to check- Returns:
trueif the dataset can be managed by a this chart type
-
getMaximumAxesCount
protected final int getMaximumAxesCount()
Description copied from class:AbstractChartReturns the maximum amount of axes that the chart can manage.- Overrides:
getMaximumAxesCountin classAbstractChart- Returns:
- the maximum amount of axes that the chart can manage.
-
-