Package org.jppf.ui.monitoring.charts
Class XChartBarHandler
java.lang.Object
org.jppf.ui.monitoring.charts.AbstractXChartHandler
org.jppf.ui.monitoring.charts.XChartBarHandler
- All Implemented Interfaces:
ChartHandler
Chart handler for bar charts and possible variations.
- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionXChartBarHandler(StatsHandler statsHandler, org.knowm.xchart.CategorySeries.CategorySeriesRenderStyle style, boolean stacked) Initialize this chart handler with a specified stats formatter. -
Method Summary
Modifier and TypeMethodDescriptioncreateChart(ChartConfiguration config) Create a chart based on a chart configuration.populateDataset(ChartConfiguration config) Populate a dataset based on a chart configuration.Methods inherited from class org.jppf.ui.monitoring.charts.AbstractXChartHandler
updateDataset
-
Constructor Details
-
XChartBarHandler
public XChartBarHandler(StatsHandler statsHandler, org.knowm.xchart.CategorySeries.CategorySeriesRenderStyle style, boolean stacked) Initialize this chart handler with a specified stats formatter.- Parameters:
statsHandler- the stats formatter that provides the data.style- the chart's rendering style.stacked- whether tre series should be rendered as stacked.
-
-
Method Details
-
createChart
Description copied from interface:ChartHandlerCreate a chart based on a chart configuration.- Parameters:
config- holds the configuration parameters for the chart created, modified by this method.- Returns:
- a
ChartConfigurationinstance.
-
populateDataset
Description copied from interface:ChartHandlerPopulate a dataset based on a chart configuration.- Parameters:
config- the chart configuration containing the dataset to populate.- Returns:
- a
ChartConfigurationinstance.
-