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

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

A GanttCategoryDataset 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 SlidingGanttCategoryDataset(GanttCategoryDataset 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.gantt.SlidingGanttCategoryDataset Summary:
clone,   equals,   getColumnCount,   getColumnIndex,   getColumnKey,   getColumnKeys,   getEndValue,   getEndValue,   getEndValue,   getEndValue,   getFirstCategoryIndex,   getMaximumCategoryCount,   getPercentComplete,   getPercentComplete,   getPercentComplete,   getPercentComplete,   getRowCount,   getRowIndex,   getRowKey,   getRowKeys,   getStartValue,   getStartValue,   getStartValue,   getStartValue,   getSubIntervalCount,   getSubIntervalCount,   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.gantt.SlidingGanttCategoryDataset 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 Number getEndValue(Comparable rowKey,
    Comparable columnKey) 
    Returns the end value for the interval for a given series and category.
 public Number getEndValue(int series,
    int category) 
    Returns the end value for the interval for a given series and category.
 public Number getEndValue(Comparable rowKey,
    Comparable columnKey,
    int subinterval) 
    Returns the end value of a sub-interval for a given item.
 public Number getEndValue(int row,
    int column,
    int subinterval) 
    Returns the end value of a sub-interval for a given item.
 public int getFirstCategoryIndex() 
    Returns the index of the first visible category.
 public int getMaximumCategoryCount() 
    Returns the maximum category count.
 public Number getPercentComplete(Comparable rowKey,
    Comparable columnKey) 
    Returns the percent complete for a given item.
 public Number getPercentComplete(int series,
    int category) 
    Returns the percent complete for a given item.
 public Number getPercentComplete(Comparable rowKey,
    Comparable columnKey,
    int subinterval) 
    Returns the percentage complete value of a sub-interval for a given item.
 public Number getPercentComplete(int row,
    int column,
    int subinterval) 
    Returns the percentage complete value of a sub-interval for a given item.
 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 Number getStartValue(Comparable rowKey,
    Comparable columnKey) 
    Returns the start value for the interval for a given series and category.
 public Number getStartValue(int row,
    int column) 
    Returns the start value for the interval for a given series and category.
 public Number getStartValue(Comparable rowKey,
    Comparable columnKey,
    int subinterval) 
    Returns the start value of a sub-interval for a given item.
 public Number getStartValue(int row,
    int column,
    int subinterval) 
    Returns the start value of a sub-interval for a given item.
 public int getSubIntervalCount(Comparable rowKey,
    Comparable columnKey) 
    Returns the number of sub-intervals for a given item.
 public int getSubIntervalCount(int row,
    int column) 
    Returns the number of sub-intervals for a given item.
 public GanttCategoryDataset 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.