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

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

A CategoryDataset implementation that presents a subset of the categories in an underlying dataset. The index of the first "visible" category can be modified, which provides a means of "sliding" through the categories in the underlying dataset.
Constructor:
 public SlidingCategoryDataset(CategoryDataset underlying,
    int firstColumn,
    int maxColumns) 
    Creates a new instance.
    Parameters:
    underlying - the underlying dataset (null not permitted).
    firstColumn - the index of the first visible column from the underlying dataset.
    maxColumns - the maximumColumnCount.
Method from org.jfree.data.category.SlidingCategoryDataset Summary:
clone,   equals,   getColumnCount,   getColumnIndex,   getColumnKey,   getColumnKeys,   getFirstCategoryIndex,   getMaximumCategoryCount,   getRowCount,   getRowIndex,   getRowKey,   getRowKeys,   getUnderlyingDataset,   getValue,   getValue,   setFirstCategoryIndex,   setMaximumCategoryCount
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.SlidingCategoryDataset Detail:
 public Object clone() throws CloneNotSupportedException 
    Returns an independent copy of the dataset. Note that:
    • the underlying dataset is only cloned if it implements the PublicCloneable interface;
    • the listeners registered with this dataset are not carried over to the cloned dataset.
 public boolean equals(Object obj) 
    Tests this SlidingCategoryDataset for equality with an arbitrary object.
 public int getColumnCount() 
    Returns the number of columns in the table.
 public int getColumnIndex(Comparable key) 
    Returns the index for the specified column key.
 public Comparable getColumnKey(int column) 
    Returns the column key for a given index.
 public List getColumnKeys() 
    Returns the column keys.
 public int getFirstCategoryIndex() 
    Returns the index of the first visible category.
 public int getMaximumCategoryCount() 
    Returns the maximum category count.
 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 row key for a given index.
 public List getRowKeys() 
    Returns the row keys.
 public CategoryDataset getUnderlyingDataset() 
    Returns the underlying dataset that was supplied to the constructor.
 public Number getValue(Comparable rowKey,
    Comparable columnKey) 
    Returns the value for a pair of keys.
 public Number getValue(int row,
    int column) 
    Returns a value from the table.
 public  void setFirstCategoryIndex(int first) 
    Sets the index of the first category that should be used from the underlying dataset, and sends a DatasetChangeEvent to all registered listeners.
 public  void setMaximumCategoryCount(int max) 
    Sets the maximum category count and sends a DatasetChangeEvent to all registered listeners.