Class MatrixChart
- java.lang.Object
-
- org.pepstock.charba.client.events.HandlerManager
-
- org.pepstock.charba.client.AbstractChart
-
- org.pepstock.charba.client.matrix.MatrixChart
-
- All Implemented Interfaces:
HasAxes
,HasCartesianAxes
,IsChart
,IsDatasetCreator<MatrixDataset>
public final class MatrixChart extends AbstractChart implements IsDatasetCreator<MatrixDataset>, HasCartesianAxes
A matrix chart shows magnitude of a phenomenon as color in two dimensions.
The variation in color may be by hue or intensity, giving obvious visual cues to the reader about how the phenomenon is clustered or varies over space.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static ControllerType
CONTROLLER_TYPE
Matrix controller type.static String
TYPE
Name of chart type "matrix"
-
Constructor Summary
Constructors Constructor Description MatrixChart()
Builds the object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyConfiguration()
Called before any drawing or reconfiguration in order that the chart which implements it can override optionsprotected 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.protected int
getMaximumDatasetsCount()
Returns the maximum amount of datasets that the chart can manage.MatrixOptions
getOptions()
Returns the options of chart.MatrixDataset
newDataset(boolean hidden)
Creates a new dataset related to chart type.-
Methods inherited from class org.pepstock.charba.client.AbstractChart
addHandler, checkAxes, checkDatasets, clear, createAndSetTimer, destroy, draw, getActiveElements, getBaseType, getCanvas, getChartElement, getData, getDatasetAtEvent, getDatasetItem, getDefaultChartOptions, getElementAtEvent, getElementsAtEvent, getId, getInitialCursor, 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, 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.HasCartesianAxes
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
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
Name of chart type "matrix"- See Also:
- Constant Field Values
-
CONTROLLER_TYPE
public static final ControllerType CONTROLLER_TYPE
Matrix controller type.
-
-
Method Detail
-
getOptions
public MatrixOptions getOptions()
Description copied from interface:IsChart
Returns the options of chart.- Specified by:
getOptions
in interfaceIsChart
- Returns:
- the options of chart.
-
newDataset
public MatrixDataset newDataset(boolean hidden)
Description copied from interface:IsDatasetCreator
Creates a new dataset related to chart type.- Specified by:
newDataset
in interfaceIsDatasetCreator<MatrixDataset>
- Parameters:
hidden
- iftrue
, it will be initially hidden.- Returns:
- a new dataset related to chart type.
-
applyConfiguration
protected final void applyConfiguration()
Description copied from class:AbstractChart
Called before any drawing or reconfiguration in order that the chart which implements it can override options- Overrides:
applyConfiguration
in classAbstractChart
-
getMaximumDatasetsCount
protected int getMaximumDatasetsCount()
Description copied from class:AbstractChart
Returns the maximum amount of datasets that the chart can manage.- Overrides:
getMaximumDatasetsCount
in classAbstractChart
- Returns:
- the maximum amount of datasets that the chart can manage.
-
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.
-
-