org.jfree.data.xy
public class XYSeriesCollection extends AbstractIntervalXYDataset implements IntervalXYDataset, DomainInfo, RangeInfo, PublicCloneable, Serializable
Constructor Summary | |
---|---|
XYSeriesCollection()
Constructs an empty dataset. | |
XYSeriesCollection(XYSeries series)
Constructs a dataset and populates it with a single series.
|
Method Summary | |
---|---|
void | addSeries(XYSeries series)
Adds a series to the collection and sends a DatasetChangeEvent
to all registered listeners.
|
Object | clone()
Returns a clone of this instance.
|
boolean | equals(Object obj)
Tests this collection for equality with an arbitrary object.
|
Range | getDomainBounds(boolean includeInterval)
Returns the range of the values in this dataset's domain.
|
double | getDomainLowerBound(boolean includeInterval)
Returns the minimum x-value in the dataset.
|
DomainOrder | getDomainOrder()
Returns the order of the domain (X) values, if this is known.
|
double | getDomainUpperBound(boolean includeInterval)
Returns the maximum x-value in the dataset.
|
Number | getEndX(int series, int item)
Returns the ending X value for the specified series and item.
|
Number | getEndY(int series, int item)
Returns the ending Y value for the specified series and item.
|
double | getIntervalPositionFactor()
Returns the interval position factor.
|
double | getIntervalWidth()
Returns the interval width. |
int | getItemCount(int series)
Returns the number of items in the specified series.
|
Range | getRangeBounds(boolean includeInterval)
Returns the range of the values in this dataset's range.
|
double | getRangeLowerBound(boolean includeInterval)
Returns the minimum y-value in the dataset.
|
double | getRangeUpperBound(boolean includeInterval)
Returns the maximum y-value in the dataset.
|
List | getSeries()
Returns a list of all the series in the collection.
|
XYSeries | getSeries(int series)
Returns a series from the collection.
|
XYSeries | getSeries(Comparable key)
Returns a series from the collection.
|
int | getSeriesCount()
Returns the number of series in the collection.
|
Comparable | getSeriesKey(int series)
Returns the key for a series.
|
Number | getStartX(int series, int item)
Returns the starting X value for the specified series and item.
|
Number | getStartY(int series, int item)
Returns the starting Y value for the specified series and item.
|
Number | getX(int series, int item)
Returns the x-value for the specified series and item.
|
Number | getY(int series, int index)
Returns the y-value for the specified series and item.
|
int | hashCode()
Returns a hash code.
|
int | indexOf(XYSeries series)
Returns the index of the specified series, or -1 if that series is not
present in the dataset.
|
boolean | isAutoWidth()
Returns whether the interval width is automatically calculated or not.
|
void | removeAllSeries()
Removes all the series from the collection and sends a
DatasetChangeEvent to all registered listeners. |
void | removeSeries(int series)
Removes a series from the collection and sends a
DatasetChangeEvent to all registered listeners.
|
void | removeSeries(XYSeries series)
Removes a series from the collection and sends a
DatasetChangeEvent to all registered listeners.
|
void | setAutoWidth(boolean b)
Sets the flag that indicates wether the interval width is automatically
calculated or not.
|
void | setIntervalPositionFactor(double factor)
Sets the interval position factor. |
void | setIntervalWidth(double width)
Sets the interval width and sends a DatasetChangeEvent to all
registered listeners.
|
Parameters: series the series (null
ignored).
Parameters: series the series (null
not permitted).
Returns: A clone.
Throws: CloneNotSupportedException if there is a problem.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Parameters: includeInterval a flag that determines whether or not the x-interval is taken into account.
Returns: The range (or null
if the dataset contains no
values).
Parameters: includeInterval a flag that determines whether or not the x-interval is taken into account.
Returns: The minimum value.
Returns: The domain order.
Parameters: includeInterval a flag that determines whether or not the x-interval is taken into account.
Returns: The maximum value.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The ending X value.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The ending Y value.
Returns: The interval position factor.
Returns: The interval width.
Parameters: series the series (zero-based index).
Returns: The item count.
Throws: IllegalArgumentException if series
is not in the
range 0
to getSeriesCount() - 1
.
Parameters: includeInterval ignored.
Returns: The range (or null
if the dataset contains no
values).
Parameters: includeInterval a flag that determines whether or not the y-interval is taken into account.
Returns: The minimum value.
Parameters: includeInterval a flag that determines whether or not the y-interval is taken into account.
Returns: The maximum value.
Returns: The list (which is unmodifiable).
Parameters: series the series index (zero-based).
Returns: The series.
Throws: IllegalArgumentException if series
is not in the
range 0
to getSeriesCount() - 1
.
Parameters: key the key (null
not permitted).
Returns: The series with the specified key.
Throws: UnknownKeyException if key
is not found in the
collection.
Since: 1.0.9
Returns: The series count.
Parameters: series the series index (in the range 0
to
getSeriesCount() - 1
).
Returns: The key for a series.
Throws: IllegalArgumentException if series
is not in the
specified range.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The starting X value.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The starting Y value.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The value.
Parameters: series the series (zero-based index). index the index of the item of interest (zero-based).
Returns: The value (possibly null
).
Returns: A hash code.
Parameters: series the series (null
not permitted).
Returns: The series index.
Since: 1.0.6
Returns: Whether the width is automatically calculated or not.
Parameters: series the series index (zero-based).
Parameters: series the series (null
not permitted).
Parameters: b a boolean.
Parameters: factor the factor.
Parameters: width the width (negative values not permitted).