Save This Page
Home » jcommon-1.0.13 » org.jfree » data » category » [javadoc | source]
org.jfree.data.category
public class: DefaultCategoryDataset [javadoc | source]
java.lang.Object
   org.jfree.data.general.AbstractDataset
      org.jfree.data.category.DefaultCategoryDataset

All Implemented Interfaces:
    PublicCloneable, CategoryDataset, Serializable, Cloneable, Dataset, ObjectInputValidation

Direct Known Subclasses:
    JDBCCategoryDataset, DefaultKeyedValues2DDataset

A default implementation of the CategoryDataset interface.
Constructor:
 public DefaultCategoryDataset() 
Method from org.jfree.data.category.DefaultCategoryDataset Summary:
addValue,   addValue,   clear,   clone,   equals,   getColumnCount,   getColumnIndex,   getColumnKey,   getColumnKeys,   getRowCount,   getRowIndex,   getRowKey,   getRowKeys,   getValue,   getValue,   hashCode,   incrementValue,   removeColumn,   removeColumn,   removeRow,   removeRow,   removeValue,   setValue,   setValue
Methods from org.jfree.data.general.AbstractDataset:
addChangeListener,   clone,   fireDatasetChanged,   getGroup,   hasListener,   notifyListeners,   removeChangeListener,   setGroup,   validateObject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.data.category.DefaultCategoryDataset Detail:
 public  void addValue(Number value,
    Comparable rowKey,
    Comparable columnKey) 
    Adds a value to the table. Performs the same function as setValue().
 public  void addValue(double value,
    Comparable rowKey,
    Comparable columnKey) 
    Adds a value to the table.
 public  void clear() 
    Clears all data from the dataset and sends a DatasetChangeEvent to all registered listeners.
 public Object clone() throws CloneNotSupportedException 
    Returns a clone of the dataset.
 public boolean equals(Object obj) 
    Tests this dataset for equality with an arbitrary object.
 public int getColumnCount() 
    Returns the number of columns in the table.
 public int getColumnIndex(Comparable key) 
    Returns the column index for a given key.
 public Comparable getColumnKey(int column) 
    Returns a column key.
 public List getColumnKeys() 
    Returns the column keys.
 public int getRowCount() 
    Returns the number of rows in the table.
 public int getRowIndex(Comparable key) 
    Returns the row index for a given key.
 public Comparable getRowKey(int row) 
    Returns the key for the specified row.
 public List getRowKeys() 
    Returns the row keys.
 public Number getValue(int row,
    int column) 
    Returns a value from the table.
 public Number getValue(Comparable rowKey,
    Comparable columnKey) 
    Returns the value for a pair of keys.
 public int hashCode() 
    Returns a hash code for the dataset.
 public  void incrementValue(double value,
    Comparable rowKey,
    Comparable columnKey) 
    Adds the specified value to an existing value in the dataset (if the existing value is null, it is treated as if it were 0.0).
 public  void removeColumn(int columnIndex) 
    Removes a column from the dataset and sends a DatasetChangeEvent to all registered listeners.
 public  void removeColumn(Comparable columnKey) 
    Removes a column from the dataset and sends a DatasetChangeEvent to all registered listeners.
 public  void removeRow(int rowIndex) 
    Removes a row from the dataset and sends a DatasetChangeEvent to all registered listeners.
 public  void removeRow(Comparable rowKey) 
    Removes a row from the dataset and sends a DatasetChangeEvent to all registered listeners.
 public  void removeValue(Comparable rowKey,
    Comparable columnKey) 
    Removes a value from the dataset and sends a DatasetChangeEvent to all registered listeners.
 public  void setValue(Number value,
    Comparable rowKey,
    Comparable columnKey) 
    Adds or updates a value in the table and sends a DatasetChangeEvent to all registered listeners.
 public  void setValue(double value,
    Comparable rowKey,
    Comparable columnKey) 
    Adds or updates a value in the table and sends a DatasetChangeEvent to all registered listeners.