public class TimePeriodValuesCollection extends AbstractIntervalXYDataset implements IntervalXYDataset, DomainInfo, 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(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.
|
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.
|
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.
|
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.
|
TimePeriodAnchor |
getXPosition()
Returns the position of the X value within each time period.
|
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, getStartYValue
getDomainOrder, getXValue, getYValue
indexOf, seriesChanged
addChangeListener, clone, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndXValue, getEndYValue, getStartXValue, getStartYValue
getDomainOrder, getXValue, getYValue
indexOf
addChangeListener, getGroup, removeChangeListener, setGroup
public 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 SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public TimePeriodValues getSeries(int series)
series
- the index of the series (zero-based).public Comparable getSeriesKey(int series)
getSeriesKey
in interface SeriesDataset
getSeriesKey
in class AbstractSeriesDataset
series
- 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 XYDataset
series
- the index of the series of interest (zero-based).public Number getX(int series, int item)
public Number getStartX(int series, int item)
getStartX
in interface IntervalXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).public Number getEndX(int series, int item)
getEndX
in interface IntervalXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).public Number getY(int series, int item)
public Number getStartY(int series, int item)
getStartY
in interface IntervalXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).public Number getEndY(int series, int item)
getEndY
in interface IntervalXYDataset
series
- the series (zero-based index).item
- the item (zero-based index).public double getDomainLowerBound(boolean includeInterval)
getDomainLowerBound
in interface DomainInfo
includeInterval
- a flag that determines whether or not the
x-interval is taken into account.public double getDomainUpperBound(boolean includeInterval)
getDomainUpperBound
in interface DomainInfo
includeInterval
- a flag that determines whether or not the
x-interval is taken into account.public Range getDomainBounds(boolean includeInterval)
getDomainBounds
in interface DomainInfo
includeInterval
- a flag that determines whether or not the
x-interval is taken into account.public boolean equals(Object obj)
public boolean getDomainIsPointsInTime()
public void setDomainIsPointsInTime(boolean flag)
flag
- the new value of the flag.Jas4pp 1.5 © Java Analysis Studio for Particle Physics