org.ascape.view.vis
Class ChartView.PieChartDataset

java.lang.Object
  extended by com.jrefinery.data.AbstractDataset
      extended by com.jrefinery.data.AbstractSeriesDataset
          extended by org.ascape.view.vis.ChartView.PieChartDataset
All Implemented Interfaces:
com.jrefinery.data.Dataset, com.jrefinery.data.PieDataset, com.jrefinery.data.SeriesDataset
Enclosing class:
ChartView

public class ChartView.PieChartDataset
extends com.jrefinery.data.AbstractSeriesDataset
implements com.jrefinery.data.PieDataset

The Class PieChartDataset.


Field Summary
 
Fields inherited from class com.jrefinery.data.AbstractDataset
listeners
 
Constructor Summary
ChartView.PieChartDataset()
          Instantiates a new pie chart dataset.
 
Method Summary
 java.util.Set getCategories()
           
 int getCategoryCount()
          Gets the category count.
 int getSeriesCount()
          Returns the number of series in the dataset.
 java.lang.String getSeriesName(int series)
          Returns the name of a series.
 java.awt.Paint getSeriesPaint(int series)
          Gets the series paint.
 java.lang.Number getValue(java.lang.Object category)
           
 void onUpdate()
          On update.
 
Methods inherited from class com.jrefinery.data.AbstractSeriesDataset
getLegendItemCount, getLegendItemLabels
 
Methods inherited from class com.jrefinery.data.AbstractDataset
addChangeListener, fireDatasetChanged, notifyListeners, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jrefinery.data.Dataset
addChangeListener, removeChangeListener
 

Constructor Detail

ChartView.PieChartDataset

public ChartView.PieChartDataset()
Instantiates a new pie chart dataset.

Method Detail

getCategories

public java.util.Set getCategories()
Specified by:
getCategories in interface com.jrefinery.data.PieDataset

getCategoryCount

public int getCategoryCount()
Gets the category count.

Returns:
the category count

getValue

public java.lang.Number getValue(java.lang.Object category)
Specified by:
getValue in interface com.jrefinery.data.PieDataset

onUpdate

public void onUpdate()
On update.


getSeriesName

public java.lang.String getSeriesName(int series)
Returns the name of a series.

Specified by:
getSeriesName in interface com.jrefinery.data.SeriesDataset
Parameters:
series - The series (zero-based index).
Returns:
the series name

getSeriesCount

public int getSeriesCount()
Returns the number of series in the dataset.

Specified by:
getSeriesCount in interface com.jrefinery.data.SeriesDataset
Returns:
The number of series in the dataset.

getSeriesPaint

public java.awt.Paint getSeriesPaint(int series)
Gets the series paint.

Parameters:
series - the series
Returns:
the series paint


Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.