Class MatrixChartWidget

  • 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<MatrixDataset>

    public class MatrixChartWidget
    extends AbstractChartWidget<MatrixChart>
    implements IsDatasetCreator<MatrixDataset>
    MATRIX chart GWT WIDGET implementation.
    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
    • Constructor Detail

      • MatrixChartWidget

        public MatrixChartWidget()
        Builds the object.
      • MatrixChartWidget

        protected MatrixChartWidget​(MatrixChart extendedChart)
        Builds the chart.
        This is must be extended for controller which are based on this chart.
        Parameters:
        extendedChart - new chart
    • Method Detail

      • getOptions

        public MatrixOptions getOptions()
        Description copied from interface: IsChart
        Returns the options of chart.
        Specified by:
        getOptions in interface IsChart
        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 interface IsDatasetCreator<MatrixDataset>
        Parameters:
        hidden - if true, it will be initially hidden.
        Returns:
        a new dataset related to chart type.
      • register

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