Class XChartPieHandler

java.lang.Object
org.jppf.ui.monitoring.charts.AbstractXChartHandler
org.jppf.ui.monitoring.charts.XChartPieHandler
All Implemented Interfaces:
ChartHandler

public class XChartPieHandler extends AbstractXChartHandler
Chart handler for pier charts and possible variations.
Author:
Laurent Cohen
  • Constructor Details

    • XChartPieHandler

      public XChartPieHandler(StatsHandler statsHandler, org.knowm.xchart.PieSeries.PieSeriesRenderStyle style)
      Initialize this chart handler with a specified stats formatter.
      Parameters:
      statsHandler - the stats formatter that provides the data.
      style - the pie rendering style.
  • Method Details

    • createChart

      public ChartConfiguration createChart(ChartConfiguration config)
      Description copied from interface: ChartHandler
      Create a chart based on a chart configuration.
      Parameters:
      config - holds the configuration parameters for the chart created, modified by this method.
      Returns:
      a ChartConfiguration instance.
    • populateDataset

      public ChartConfiguration populateDataset(ChartConfiguration config)
      Description copied from interface: ChartHandler
      Populate a dataset based on a chart configuration.
      Parameters:
      config - the chart configuration containing the dataset to populate.
      Returns:
      a ChartConfiguration instance.
    • updateDataset

      public ChartConfiguration updateDataset(ChartConfiguration config)
      Description copied from interface: ChartHandler
      Update a dataset based on a chart configuration..
      Specified by:
      updateDataset in interface ChartHandler
      Overrides:
      updateDataset in class AbstractXChartHandler
      Parameters:
      config - the chart configuration containing the dataset to update.
      Returns:
      a ChartConfiguration instance.