public final class GaugeChart extends AbstractChart
Modifier and Type | Field and Description |
---|---|
static ControllerType |
CONTROLLER_TYPE
METER controller type
|
static double |
DEFAULT_MAX
Default of maximum value of data in the a dataset (percentage based), 100.0.
|
static String |
TYPE
Name of chart type "charbagauge" for gauge
|
Constructor and Description |
---|
GaugeChart()
Builds the object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyConfiguration()
Called before any drawing or reconfiguration in order that the chart which implements it can override options
|
GaugeOptions |
getOptions()
Returns the options of chart.
|
GaugeDataset |
newDataset(boolean hidden)
Creates a new dataset related to chart type.
|
GaugeDataset |
newDataset(double max)
Returns a dataset with a maximum value.
|
addHandler, 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
fireEvent, getHandlerCount, isEventHandled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newDataset
checkAndGetIfConsistent, checkAndGetIfValid, checkIfConsistent, checkIfValid, fireEvent, getHandlerCount, isAbstractChart, isConsistent, isEventHandled, isValid, toBase64Image, toBase64Image, toBase64Image
public static final String TYPE
public static final ControllerType CONTROLLER_TYPE
public static final double DEFAULT_MAX
public GaugeOptions getOptions()
IsChart
public GaugeDataset newDataset(boolean hidden)
IsDatasetCreator
hidden
- if true
, it will be initially hidden.public GaugeDataset newDataset(double max)
max
- maximum value of datasetprotected final void applyConfiguration()
AbstractChart
applyConfiguration
in class AbstractChart