|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
org.jfree.data.xy.AbstractXYDataset
org.jfree.data.xy.AbstractIntervalXYDataset
org.jfree.data.time.TimeTableXYDataset
A dataset for regular time periods that implements the TableXYDataset interface.
TableXYDataset
,
Serialized FormConstructor Summary | |
TimeTableXYDataset()
Creates a new TimeTableDataset. |
|
TimeTableXYDataset(java.util.TimeZone zone)
Creates a new TimeTableDataset with the given time zone. |
|
TimeTableXYDataset(java.util.TimeZone zone,
java.util.Locale locale)
Creates a new TimeTableDataset with the given time zone and locale. |
Method Summary | |
void |
add(RegularTimePeriod period,
double y,
java.lang.String seriesName)
Adds a new data item to the dataset. |
void |
add(RegularTimePeriod period,
java.lang.Number y,
java.lang.String seriesName,
boolean notify)
Adds a new data item to the dataset. |
boolean |
getDomainIsPointsInTime()
Returns a flag that controls whether the domain is treated as 'points in time'. |
Range |
getDomainRange()
Returns the range of the values in this dataset's domain. |
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()
Returns the number of items every series. |
int |
getItemCount(int series)
Returns the number of items in a series. |
java.lang.Number |
getMaximumDomainValue()
Returns the maximum value in the dataset (or null if all the values in
the domain are null ). |
java.lang.Number |
getMinimumDomainValue()
Returns the minimum value in the dataset (or null if all the values in
the domain are null ). |
int |
getSeriesCount()
Returns the number of series in the dataset. |
java.lang.String |
getSeriesName(int series)
Returns the name of 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 an item within a series. |
java.lang.Number |
getY(int series,
int item)
Returns the y-value for an item within a series. |
void |
remove(RegularTimePeriod period,
java.lang.String seriesName)
Removes an existing data item from the dataset. |
void |
remove(RegularTimePeriod period,
java.lang.String seriesName,
boolean notify)
Removes an existing data item from the dataset. |
void |
setDomainIsPointsInTime(boolean flag)
Sets a flag that controls whether the domain is treated as 'points in time', or time periods. |
Methods inherited from class org.jfree.data.xy.AbstractIntervalXYDataset |
getEndXValue, getEndYValue, getStartXValue, getStartYValue |
Methods inherited from class org.jfree.data.xy.AbstractXYDataset |
getDomainOrder, getXValue, getYValue |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset |
addChangeListener, clone, fireDatasetChanged, getGroup, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.xy.IntervalXYDataset |
getEndXValue, getEndYValue, getStartXValue, getStartYValue |
Methods inherited from interface org.jfree.data.xy.XYDataset |
getDomainOrder, getXValue, getYValue |
Methods inherited from interface org.jfree.data.general.Dataset |
addChangeListener, getGroup, removeChangeListener, setGroup |
Constructor Detail |
public TimeTableXYDataset()
public TimeTableXYDataset(java.util.TimeZone zone)
zone
- the time zone to use.public TimeTableXYDataset(java.util.TimeZone zone, java.util.Locale locale)
zone
- the time zone to use.locale
- the locale to use.Method Detail |
public void add(RegularTimePeriod period, double y, java.lang.String seriesName)
period
- the time period.y
- the value for this period.seriesName
- the name of the series to add the value.public void add(RegularTimePeriod period, java.lang.Number y, java.lang.String seriesName, boolean notify)
period
- the time period.y
- the value for this period.seriesName
- the name of the series to add the value.notify
- wether dataset listener are notified or not.public void remove(RegularTimePeriod period, java.lang.String seriesName)
period
- the (existing!) time period of the value to remove.seriesName
- the (existing!) series name to remove the value.public void remove(RegularTimePeriod period, java.lang.String seriesName, boolean notify)
period
- the (existing!) time period of the value to remove.seriesName
- the (existing!) series name to remove the value.notify
- wether dataset listener are notified or not.public int getItemCount()
getItemCount
in interface TableXYDataset
public int getItemCount(int series)
getItemCount
in interface XYDataset
series
- the series (zero-based index).
public int getSeriesCount()
getSeriesCount
in interface SeriesDataset
getSeriesCount
in class AbstractSeriesDataset
public java.lang.String getSeriesName(int series)
getSeriesName
in interface SeriesDataset
getSeriesName
in class AbstractSeriesDataset
series
- the series (zero-based index).
public java.lang.Number getX(int series, int item)
getX
in interface XYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
public java.lang.Number getStartX(int series, int item)
getStartX
in interface IntervalXYDataset
series
- the series (zero-based index).item
- the item within a series (zero-based index).
public java.lang.Number getEndX(int series, int item)
getEndX
in interface IntervalXYDataset
series
- the series (zero-based index).item
- the item within a series (zero-based index).
public java.lang.Number getY(int series, int item)
getY
in interface XYDataset
series
- the series (zero-based index).item
- the item (zero-based index).
null
).public java.lang.Number getStartY(int series, int item)
getStartY
in interface IntervalXYDataset
series
- the series (zero-based index).item
- the item within a series (zero-based index).
public java.lang.Number getEndY(int series, int item)
getEndY
in interface IntervalXYDataset
series
- the series (zero-based index).item
- the item within a series (zero-based index).
public java.lang.Number getMinimumDomainValue()
null
if all the values in
the domain are null
).
getMinimumDomainValue
in interface DomainInfo
public java.lang.Number getMaximumDomainValue()
null
if all the values in
the domain are null
).
getMaximumDomainValue
in interface DomainInfo
public Range getDomainRange()
getDomainRange
in interface DomainInfo
public boolean getDomainIsPointsInTime()
This flag is used when determining the max and min values for the domain. If true, then only the x-values are considered for the max and min values. If false, then the start and end x-values will also be taken into consideration
public void setDomainIsPointsInTime(boolean flag)
flag
- The new value of the flag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |