public class TimePeriodValuesCollection extends AbstractIntervalXYDataset implements IntervalXYDataset, DomainInfo, java.io.Serializable
TimePeriodValues objects.
This class implements the XYDataset interface, as
well as the extended IntervalXYDataset interface. This makes it a
convenient dataset for use with the XYPlot
class.
| Constructor and Description |
|---|
TimePeriodValuesCollection()
Constructs an empty dataset.
|
TimePeriodValuesCollection(TimePeriodValues series)
Constructs a dataset containing a single series.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSeries(TimePeriodValues series)
Adds a series to the collection.
|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
Range |
getDomainBounds(boolean includeInterval)
Returns the range of the values in this dataset's domain.
|
boolean |
getDomainIsPointsInTime()
Deprecated.
This flag is no longer used by JFreeChart (as of version
1.0.3).
|
double |
getDomainLowerBound(boolean includeInterval)
Returns the minimum x-value in the dataset.
|
double |
getDomainUpperBound(boolean includeInterval)
Returns the maximum x-value in the dataset.
|
java.lang.Number |
getEndX(int series,
int item)
Returns the ending X value for the specified series and item.
|
java.lang.Number |
getEndY(int series,
int item)
Returns the ending Y value for the specified series and item.
|
int |
getItemCount(int series)
Returns the number of items in the specified series.
|
TimePeriodValues |
getSeries(int series)
Returns a series.
|
int |
getSeriesCount()
Returns the number of series in the collection.
|
java.lang.Comparable |
getSeriesKey(int series)
Returns the key for a series.
|
java.lang.Number |
getStartX(int series,
int item)
Returns the starting X value for the specified series and item.
|
java.lang.Number |
getStartY(int series,
int item)
Returns the starting Y value for the specified series and item.
|
java.lang.Number |
getX(int series,
int item)
Returns the x-value for the specified series and item.
|
TimePeriodAnchor |
getXPosition()
Returns the position of the X value within each time period.
|
java.lang.Number |
getY(int series,
int item)
Returns the y-value for the specified series and item.
|
void |
removeSeries(int index)
Removes a series from the collection.
|
void |
removeSeries(TimePeriodValues series)
Removes the specified series from the collection.
|
void |
setDomainIsPointsInTime(boolean flag)
Deprecated.
This flag is no longer used by JFreeChart (as of version
1.0.3).
|
void |
setXPosition(TimePeriodAnchor position)
Sets the position of the x axis within each time period.
|
getEndXValue, getEndYValue, getStartXValue, getStartYValuegetDomainOrder, getXValue, getYValueindexOf, seriesChangedaddChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndXValue, getEndYValue, getStartXValue, getStartYValuegetDomainOrder, getXValue, getYValueindexOfaddChangeListener, getGroup, removeChangeListener, setGrouppublic TimePeriodValuesCollection()
public TimePeriodValuesCollection(TimePeriodValues series)
series - the series (null ignored).public TimePeriodAnchor getXPosition()
null).setXPosition(TimePeriodAnchor)public void setXPosition(TimePeriodAnchor position)
position - the position (null not permitted).getXPosition()public int getSeriesCount()
getSeriesCount in interface SeriesDatasetgetSeriesCount in class AbstractSeriesDatasetpublic TimePeriodValues getSeries(int series)
series - the index of the series (zero-based).public java.lang.Comparable getSeriesKey(int series)
getSeriesKey in interface SeriesDatasetgetSeriesKey in class AbstractSeriesDatasetseries - the index of the series (zero-based).public void addSeries(TimePeriodValues series)
DatasetChangeEvent is sent to all
registered listeners.series - the time series.public void removeSeries(TimePeriodValues series)
series - the series to remove (null not permitted).public void removeSeries(int index)
index - the series index (zero-based).public int getItemCount(int series)
This method is provided for convenience.
getItemCount in interface XYDatasetseries - the index of the series of interest (zero-based).public java.lang.Number getX(int series, int item)
public java.lang.Number getStartX(int series, int item)
getStartX in interface IntervalXYDatasetseries - the series (zero-based index).item - the item (zero-based index).public java.lang.Number getEndX(int series, int item)
getEndX in interface IntervalXYDatasetseries - the series (zero-based index).item - the item (zero-based index).public java.lang.Number getY(int series, int item)
public java.lang.Number getStartY(int series, int item)
getStartY in interface IntervalXYDatasetseries - the series (zero-based index).item - the item (zero-based index).public java.lang.Number getEndY(int series, int item)
getEndY in interface IntervalXYDatasetseries - the series (zero-based index).item - the item (zero-based index).public double getDomainLowerBound(boolean includeInterval)
getDomainLowerBound in interface DomainInfoincludeInterval - a flag that determines whether or not the
x-interval is taken into account.public double getDomainUpperBound(boolean includeInterval)
getDomainUpperBound in interface DomainInfoincludeInterval - a flag that determines whether or not the
x-interval is taken into account.public Range getDomainBounds(boolean includeInterval)
getDomainBounds in interface DomainInfoincludeInterval - a flag that determines whether or not the
x-interval is taken into account.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).public boolean getDomainIsPointsInTime()
public void setDomainIsPointsInTime(boolean flag)
flag - the new value of the flag.