|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.data.general.AbstractDataset org.jfree.data.general.AbstractSeriesDataset org.jfree.data.xy.AbstractXYDataset org.jfree.data.xy.AbstractIntervalXYDataset org.jfree.data.time.TimeSeriesCollection edu.sdsc.inca.consumer.TimeSeriesBean
public class TimeSeriesBean
A dataset producer for graphing time series data based on an xpath values in a xml document. This is implemented by extending the time series dataset to pull values from xpaths. There is a main xpath expression used to pick out filter the document. Relative xpath expressions are used for the xaxis value, yaxis value, tooltip, and url.
Field Summary | |
---|---|
static java.lang.String |
NAMESPACE_DECLS
|
Fields inherited from interface de.laures.cewolf.DatasetProducer |
---|
PRODUCER_ATTRIBUTE_NAME |
Constructor Summary | |
---|---|
TimeSeriesBean(java.lang.String id)
Create a new time series collection with the specified id |
Method Summary | |
---|---|
java.lang.String |
generateLink(int index)
Return the link to use when the given date point index is moused over |
java.lang.String |
generateLink(java.lang.Object data,
int series,
int item)
Return the link to use when the cursor is hovered over a data point |
java.lang.String |
generateToolTip(int index)
Return the link to use when the given date point index is moused over |
java.lang.String |
generateToolTip(org.jfree.data.xy.XYDataset data,
int series,
int item)
Return the text to display when the cursor is hovered a data point |
java.lang.String |
getLabel()
Return label description to be used in legend |
java.lang.String |
getProducerId()
Returns a unique ID for this DatasetProducer |
boolean |
hasExpired(java.util.Map params,
java.util.Date since)
This method influences Cewolf's caching behaviour. |
java.lang.Object |
produceDataset(java.util.Map params)
Return a time series collection using data supplied from the provided xpaths |
void |
setLabel(java.lang.String label)
Set description of series to be used in graph legend |
void |
setLinkXpath(java.lang.String linkXpath)
Set the xpath to retrieve the link to use for a given data point |
void |
setTimestampXpath(java.lang.String timestampXpath)
Set the xpath to retrieve the timestamp to use for a given data point |
void |
setTooltipXpath(java.lang.String tooltipXpath)
Set the xpath to retrieve the tooltip text to use for a given data point |
void |
setValueXpath(java.lang.String valueXpath)
Set the xpath to retrieve the a data point value |
void |
setXml(java.lang.String xml)
Set the xml document to extract time series from |
void |
setXpath(java.lang.String xpath)
Set the absolute xpath to a datapoint |
Methods inherited from class org.jfree.data.time.TimeSeriesCollection |
---|
addSeries, equals, getDomainBounds, getDomainIsPointsInTime, getDomainLowerBound, getDomainOrder, getDomainUpperBound, getEndX, getEndY, getItemCount, getSeries, getSeries, getSeries, getSeriesCount, getSeriesKey, getStartX, getStartY, getSurroundingItems, getX, getX, getXPosition, getXValue, getY, hashCode, indexOf, removeAllSeries, removeSeries, removeSeries, setDomainIsPointsInTime, setXPosition |
Methods inherited from class org.jfree.data.xy.AbstractIntervalXYDataset |
---|
getEndXValue, getEndYValue, getStartXValue, getStartYValue |
Methods inherited from class org.jfree.data.xy.AbstractXYDataset |
---|
getYValue |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset |
---|
indexOf, seriesChanged |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.xy.IntervalXYDataset |
---|
getEndXValue, getEndYValue, getStartXValue, getStartYValue |
Field Detail |
---|
public static final java.lang.String NAMESPACE_DECLS
Constructor Detail |
---|
public TimeSeriesBean(java.lang.String id)
id
- a unique identifier for identifying this time series collectionMethod Detail |
---|
public java.lang.String generateLink(java.lang.Object data, int series, int item)
generateLink
in interface de.laures.cewolf.links.XYItemLinkGenerator
data
- This object.series
- The series index containing the data pointitem
- The index of the data point in the series
public java.lang.String generateLink(int index)
index
- The index of the data point that was moused over
public java.lang.String generateToolTip(org.jfree.data.xy.XYDataset data, int series, int item)
generateToolTip
in interface de.laures.cewolf.tooltips.XYToolTipGenerator
data
- This object.series
- The series index containing the data pointitem
- The index of the data point in the series
public java.lang.String generateToolTip(int index)
index
- The index of the data point that was moused over
public java.lang.String getLabel()
public java.lang.String getProducerId()
getProducerId
in interface de.laures.cewolf.DatasetProducer
public boolean hasExpired(java.util.Map params, java.util.Date since)
hasExpired
in interface de.laures.cewolf.DatasetProducer
public java.lang.Object produceDataset(java.util.Map params) throws de.laures.cewolf.DatasetProduceException
produceDataset
in interface de.laures.cewolf.DatasetProducer
params
- Additional params for the dataset production.
de.laures.cewolf.DatasetProduceException
- if trouble generating datapublic void setLabel(java.lang.String label)
label
- A string containing a labelpublic void setLinkXpath(java.lang.String linkXpath)
linkXpath
- A relative xpathpublic void setTooltipXpath(java.lang.String tooltipXpath)
tooltipXpath
- A relative xpathpublic void setTimestampXpath(java.lang.String timestampXpath)
timestampXpath
- A relative xpathpublic void setValueXpath(java.lang.String valueXpath)
valueXpath
- A relative xpathpublic void setXml(java.lang.String xml)
xml
- A string containing a xml documentpublic void setXpath(java.lang.String xpath)
xpath
- An absolute xpath
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |