org.jfree.data.gantt
public class XYTaskDataset extends AbstractXYDataset implements IntervalXYDataset, DatasetChangeListener
Since: 1.0.11
Constructor Summary | |
---|---|
XYTaskDataset(TaskSeriesCollection tasks)
Creates a new dataset based on the supplied collection of tasks.
|
Method Summary | |
---|---|
Object | clone()
Returns a clone of this dataset.
|
void | datasetChanged(DatasetChangeEvent event)
Receives a change event from the underlying dataset and responds by
firing a change event for this dataset.
|
boolean | equals(Object obj)
Tests this dataset for equality with an arbitrary object.
|
Number | getEndX(int series, int item)
Returns the ending date/time for the specified item (task) in the
given series, measured in milliseconds since 1-Jan-1970 (as in
java.util.Date).
|
double | getEndXValue(int series, int item)
Returns the ending date/time for the specified item (task) in the
given series, measured in milliseconds since 1-Jan-1970 (as in
java.util.Date).
|
Number | getEndY(int series, int item)
Returns the ending value of the y-interval for an item in the
given series.
|
double | getEndYValue(int series, int item)
Returns the ending value of the y-interval for an item in the
given series.
|
int | getItemCount(int series)
Returns the number of items (tasks) in the specified series.
|
int | getSeriesCount()
Returns the number of series in the dataset.
|
Comparable | getSeriesKey(int series)
Returns the name of a series.
|
double | getSeriesWidth()
Returns the width of the interval for each series this dataset.
|
Number | getStartX(int series, int item)
Returns the starting date/time for the specified item (task) in the
given series, measured in milliseconds since 1-Jan-1970 (as in
java.util.Date).
|
double | getStartXValue(int series, int item)
Returns the starting date/time for the specified item (task) in the
given series, measured in milliseconds since 1-Jan-1970 (as in
java.util.Date).
|
Number | getStartY(int series, int item)
Returns the starting value of the y-interval for an item in the
given series.
|
double | getStartYValue(int series, int item)
Returns the starting value of the y-interval for an item in the
given series.
|
TaskSeriesCollection | getTasks()
Returns the underlying task series collection that was supplied to the
constructor.
|
Number | getX(int series, int item)
Returns the x-value for the specified series.
|
double | getXValue(int series, int item)
Returns the x-value (as a double primitive) for an item within a series.
|
Number | getY(int series, int item)
Returns the y-value for the specified series/item. |
double | getYValue(int series, int item)
Returns the y-value (as a double primitive) for an item within a series.
|
boolean | isTransposed()
Returns a flag that indicates whether or not the dataset is transposed.
|
void | setSeriesWidth(double w)
Sets the series interval width and sends a DatasetChangeEvent to
all registered listeners.
|
void | setTransposed(boolean transposed)
Sets the flag that controls whether or not the dataset is transposed
and sends a DatasetChangeEvent to all registered listeners.
|
Parameters: tasks the underlying dataset (null
not permitted).
Returns: A clone of this dataset.
Throws: CloneNotSupportedException if there is a problem cloning.
Parameters: event the event.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Parameters: series the series index. item the item (or task) index.
Returns: The end date/time.
Parameters: series the series index. item the item (or task) index.
Returns: The end date/time.
Parameters: series the series index. item the item (or task) index.
Returns: The y-interval end.
Parameters: series the series index. item the item (or task) index.
Returns: The y-interval end.
Parameters: series the series index (zero-based).
Returns: The item count.
Returns: The series count.
Parameters: series the series index (zero-based).
Returns: The name of a series.
Returns: The width of the series interval.
See Also: XYTaskDataset
Parameters: series the series index. item the item (or task) index.
Returns: The start date/time.
Parameters: series the series index. item the item (or task) index.
Returns: The start date/time.
Parameters: series the series index. item the item (or task) index.
Returns: The y-interval start.
Parameters: series the series index. item the item (or task) index.
Returns: The y-interval start.
Returns: The underlying collection (never null
).
Parameters: series the series index. item the item index.
Returns: The x-value (in milliseconds).
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The value.
Parameters: series the series index. item the item index.
Returns: The y-value.
Parameters: series the series index (zero-based). item the item index (zero-based).
Returns: The value.
false
which means the x-values are integers
corresponding to the series indices, and the y-values are millisecond
values corresponding to the task date/time intervals. If the flag
is set to true
, the x and y-values are reversed.
Returns: The flag.
See Also: XYTaskDataset
Parameters: w the width.
See Also: getSeriesWidth
Parameters: transposed the new flag value.
See Also: isTransposed