|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.reportmodel.TimeLine
public class TimeLine
Contains time line data for an integer value. The semantics is that at
every data point, the time line's value changed from the previous point's
value to the current point's value. Time points may be specified either
by an absolute value using addTimePoint, or by a value relative
to the previous time point using addChange(java.util.Date, int)
. If all points are
specified using addChange, an initial value must be given
using setInitialValue(int)
.
Constructor Summary | |
---|---|
TimeLine(java.lang.String title,
java.lang.String rangeLabel)
Creates a new time line. |
Method Summary | |
---|---|
void |
addChange(java.util.Date date,
int delta)
Specifies that the time line's value changed at a given date. |
void |
addTimePoint(java.util.Date date,
int value)
Adds a data point to the time line. |
java.util.List |
getDataPoints()
Returns a List of data points, ordered by date. |
java.lang.String |
getRangeLabel()
Returns the range label (axis label) of the values |
java.lang.String |
getTitle()
Returns the title of the time line |
boolean |
isEmpty()
Checks if the time series is empty. |
void |
setInitialValue(int initialValue)
Sets the initial value of the time line, that is the value just before the first data point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeLine(java.lang.String title, java.lang.String rangeLabel)
title
- the time line's titlerangeLabel
- a range label (axis label) for the valuesMethod Detail |
---|
public void setInitialValue(int initialValue)
initialValue
- the time line's initial valuepublic void addTimePoint(java.util.Date date, int value)
date
- the data point's datevalue
- the data point's valuepublic void addChange(java.util.Date date, int delta)
date
- the data point's datedelta
- the value change at this timepublic boolean isEmpty()
public java.util.List getDataPoints()
TimePoint
spublic java.lang.String getRangeLabel()
public java.lang.String getTitle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |