Package org.pepstock.charba.client
Class PolarAreaChart
- java.lang.Object
-
- org.pepstock.charba.client.events.HandlerManager
-
- org.pepstock.charba.client.AbstractChart
-
- org.pepstock.charba.client.PolarAreaChart
-
- All Implemented Interfaces:
HasAxes
,HasRadialAxis
,IsChart
,IsDatasetCreator<PolarAreaDataset>
public class PolarAreaChart extends AbstractChart implements IsDatasetCreator<PolarAreaDataset>, HasRadialAxis
POLAR AREA chart implementation.
Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.
This type of chart is often useful when we want to show a comparison data similar to a pie chart, but also show a scale of values for context.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
-
Fields inherited from class org.pepstock.charba.client.AbstractChart
datasetReferenceFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description PolarAreaChart()
Builds the object.protected
PolarAreaChart(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 boolean
checkDataset(Dataset dataset)
Returnstrue
if the dataset can be managed by a this chart type.protected int
getMaximumAxesCount()
Returns the maximum amount of axes that the chart can manage.PolarAreaOptions
getOptions()
Returns the options of chart.PolarAreaDataset
newDataset(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, getDatasetReferenceFactory, getDefaultChartOptions, getDrawCount, getElementAtEvent, getElementAtEvent, getElementsAtEvent, getElementsAtEvent, getId, getInitialCursor, getMaximumDatasetsCount, getNode, getPlugins, getSortedVisibleDatasetItems, getSource, getTimer, getTooltipActiveElements, getType, getVisibleDatasetCount, getWholeOptions, hide, hide, isChartAttached, isDatasetVisible, isDataVisible, isDestroyOnDetach, isDrawOnAttach, isInitialized, isPluginEnabled, 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
-
PolarAreaChart
public PolarAreaChart()
Builds the object.
-
PolarAreaChart
protected PolarAreaChart(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 PolarAreaOptions getOptions()
Description copied from interface:IsChart
Returns the options of chart.- Specified by:
getOptions
in interfaceIsChart
- Returns:
- the options of chart.
-
newDataset
public PolarAreaDataset newDataset(boolean hidden)
Description copied from interface:IsDatasetCreator
Creates a new dataset related to chart type.- Specified by:
newDataset
in interfaceIsDatasetCreator<PolarAreaDataset>
- 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:AbstractChart
Returnstrue
if the dataset can be managed by a this chart type.- Specified by:
checkDataset
in classAbstractChart
- Parameters:
dataset
- dataset to check- Returns:
true
if the dataset can be managed by a this chart type
-
getMaximumAxesCount
protected final int getMaximumAxesCount()
Description copied from class:AbstractChart
Returns the maximum amount of axes that the chart can manage.- Overrides:
getMaximumAxesCount
in classAbstractChart
- Returns:
- the maximum amount of axes that the chart can manage.
-
-