org.jppf.ui.monitoring.charts
Class Pie3DChartHandler

java.lang.Object
  extended by org.jppf.ui.monitoring.charts.Pie3DChartHandler
All Implemented Interfaces:
ChartHandler
Direct Known Subclasses:
RingChartHandler

public class Pie3DChartHandler
extends Object
implements ChartHandler

Instances of this class are used to create and update 3D pie charts.

Author:
Laurent Cohen

Field Summary
protected  StatsHandler statsHandler
          The stats formatter that provides the data.
 
Constructor Summary
Pie3DChartHandler(StatsHandler statsHandler)
          Initialize this chart handler with a specified stats formatter.
 
Method Summary
 ChartConfiguration createChart(ChartConfiguration config)
          Create a plot XY chart based on a chart configuration.
protected  Object createDataset(ChartConfiguration config)
          Create and populate a dataset with the values of the specified fields.
 ChartConfiguration populateDataset(ChartConfiguration config)
          Populate a dataset based on a chart configuration.
 ChartConfiguration updateDataset(ChartConfiguration config)
          Update a dataset based on a chart configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statsHandler

protected StatsHandler statsHandler
The stats formatter that provides the data.

Constructor Detail

Pie3DChartHandler

public Pie3DChartHandler(StatsHandler statsHandler)
Initialize this chart handler with a specified stats formatter.

Parameters:
statsHandler - the stats formatter that provides the data.
Method Detail

createChart

public ChartConfiguration createChart(ChartConfiguration config)
Create a plot XY chart based on a chart configuration.

Specified by:
createChart in interface ChartHandler
Parameters:
config - holds the configuration parameters for the chart created, modified by this method.
Returns:
a ChartConfiguration instance.
See Also:
ChartHandler.createChart(org.jppf.ui.monitoring.charts.config.ChartConfiguration)

createDataset

protected Object createDataset(ChartConfiguration config)
Create and populate a dataset with the values of the specified fields.

Parameters:
config - the names of the fields whose values populate the dataset.
Returns:
a DefaultCategoryDataset instance.

populateDataset

public ChartConfiguration populateDataset(ChartConfiguration config)
Populate a dataset based on a chart configuration.

Specified by:
populateDataset in interface ChartHandler
Parameters:
config - the chart configuration containing the dataset to populate.
Returns:
a ChartConfiguration instance.
See Also:
ChartHandler.populateDataset(org.jppf.ui.monitoring.charts.config.ChartConfiguration)

updateDataset

public ChartConfiguration updateDataset(ChartConfiguration config)
Update a dataset based on a chart configuration.

Specified by:
updateDataset in interface ChartHandler
Parameters:
config - the chart configuration containing the dataset to update.
Returns:
a ChartConfiguration instance.
See Also:
ChartHandler.updateDataset(org.jppf.ui.monitoring.charts.config.ChartConfiguration)


Copyright © 2005-2010 JPPF Team.