anl.aida.plot
Class DataFrameCategoryDataset

java.lang.Object
  extended by org.jfree.data.general.AbstractDataset
      extended by anl.aida.plot.DataFrameCategoryDataset
All Implemented Interfaces:
java.io.ObjectInputValidation, java.io.Serializable, java.lang.Cloneable, org.jfree.data.category.CategoryDataset, org.jfree.data.general.Dataset, org.jfree.data.KeyedValues2D, org.jfree.data.Values2D

public class DataFrameCategoryDataset
extends org.jfree.data.general.AbstractDataset
implements org.jfree.data.category.CategoryDataset

DataFrame adapted to a category data set.

See Also:
Serialized Form

Nested Class Summary
static class DataFrameCategoryDataset.DateColumnKey
           
 
Field Summary
private  java.util.List<DataFrameCategoryDataset.DateColumnKey> colKeys
           
private  anl.aida.data.DataFrame frame
           
private  java.util.List<PlotRowKey> rowKeys
           
 
Constructor Summary
DataFrameCategoryDataset(anl.aida.data.DataFrame frame)
           
 
Method Summary
 int getColumnCount()
           
 int getColumnIndex(java.lang.Comparable col)
           
 java.lang.Comparable getColumnKey(int index)
           
 java.util.List getColumnKeys()
           
 int getRowCount()
           
 int getRowIndex(java.lang.Comparable row)
           
 java.lang.Comparable getRowKey(int index)
           
 java.util.List getRowKeys()
           
 java.lang.Number getValue(java.lang.Comparable row, java.lang.Comparable col)
           
 java.lang.Number getValue(int row, int col)
           
 
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
 

Field Detail

frame

private anl.aida.data.DataFrame frame

colKeys

private java.util.List<DataFrameCategoryDataset.DateColumnKey> colKeys

rowKeys

private java.util.List<PlotRowKey> rowKeys
Constructor Detail

DataFrameCategoryDataset

public DataFrameCategoryDataset(anl.aida.data.DataFrame frame)
Parameters:
frame -
Method Detail

getColumnIndex

public int getColumnIndex(java.lang.Comparable col)
Specified by:
getColumnIndex in interface org.jfree.data.KeyedValues2D

getColumnKey

public java.lang.Comparable getColumnKey(int index)
Specified by:
getColumnKey in interface org.jfree.data.KeyedValues2D

getColumnKeys

public java.util.List getColumnKeys()
Specified by:
getColumnKeys in interface org.jfree.data.KeyedValues2D

getRowIndex

public int getRowIndex(java.lang.Comparable row)
Specified by:
getRowIndex in interface org.jfree.data.KeyedValues2D

getRowKey

public java.lang.Comparable getRowKey(int index)
Specified by:
getRowKey in interface org.jfree.data.KeyedValues2D

getRowKeys

public java.util.List getRowKeys()
Specified by:
getRowKeys in interface org.jfree.data.KeyedValues2D

getValue

public java.lang.Number getValue(java.lang.Comparable row,
                                 java.lang.Comparable col)
Specified by:
getValue in interface org.jfree.data.KeyedValues2D

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface org.jfree.data.Values2D

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface org.jfree.data.Values2D

getValue

public java.lang.Number getValue(int row,
                                 int col)
Specified by:
getValue in interface org.jfree.data.Values2D