Class MeterChartWidget

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>, IsChart, IsDatasetCreator<MeterDataset>

    public final class MeterChartWidget
    extends AbstractChartWidget<MeterChart>
    implements IsDatasetCreator<MeterDataset>
    METER chart GWT WIDGET implementation.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • MeterChartWidget

        public MeterChartWidget()
        Builds the object.
    • Method Detail

      • getOptions

        public MeterOptions getOptions()
        Description copied from interface: IsChart
        Returns the options of chart.
        Specified by:
        getOptions in interface IsChart
        Returns:
        the options of chart.
      • newDataset

        public MeterDataset newDataset​(boolean hidden)
        Description copied from interface: IsDatasetCreator
        Creates a new dataset related to chart type.
        Specified by:
        newDataset in interface IsDatasetCreator<MeterDataset>
        Parameters:
        hidden - if true, it will be initially hidden.
        Returns:
        a new dataset related to chart type.
      • newDataset

        public MeterDataset newDataset​(double max)
        Returns a dataset with a maximum value.
        Parameters:
        max - maximum value of dataset
        Returns:
        dataset instance
      • register

        public static void register()
        Registers the METER controller in CHART.JS.