| |
|
| de.laures.cewolf.DatasetProducer
All known Subclasses: de.laures.cewolf.dp.DataSourceXYDatasetProducer, de.laures.cewolf.dp.MovingAverageDatasetProducer,
DatasetProducer | public interface DatasetProducer extends Serializable(Code) | | Produces a
org.jfree.data.Dataset which will be rendered
as a chart afterwards.
See Also: org.jfree.data.Dataset author: Guido Laures since: 0.1 |
Field Summary | |
final public static String | PRODUCER_ATTRIBUTE_NAME By default the the name of the JSP attribute
holding the producer instance is passed to the
produceDataset method as a prameter. |
Method Summary | |
String | getProducerId() Tis method returns a unique ID for a DatasetProducer from this class. | boolean | hasExpired(Map params, Date since) This method is called by the Cewolf framework to check if a formerly
produced data can be reused. | Object | produceDataset(Map params) Produces a
org.jfree.data.Dataset object.
Parameters: params - additional params for the dataset production. |
PRODUCER_ATTRIBUTE_NAME | final public static String PRODUCER_ATTRIBUTE_NAME(Code) | | By default the the name of the JSP attribute
holding the producer instance is passed to the
produceDataset method as a prameter.
|
getProducerId | String getProducerId()(Code) | | Tis method returns a unique ID for a DatasetProducer from this class.
Producers with the same ID are supposed to produce the same data when
called with the same paramters.
the unique ID for instances of this poducer class since: 0.9 |
hasExpired | boolean hasExpired(Map params, Date since)(Code) | | This method is called by the Cewolf framework to check if a formerly
produced data can be reused. If the data which had already been used
for chart rendering is still valid this method should return true .
If possible the Cewolf framework will try to reuse the rendered chart
image. If this is not possible because of some circumstances (e.g. the chart
had been removed from the image cache) the produceDataset method is called afterwards.
Therefore there is no guarantee that the dataset production is always
avoided if this method returns true.
Parameters: params - the production parameters of the already produced data Parameters: since - the point in time when the already produced data had been produced true if the data which had been produced with the passed in parameters has expired since its creation, false otherwise since: 0.9 |
produceDataset | Object produceDataset(Map params) throws DatasetProduceException(Code) | | Produces a
org.jfree.data.Dataset object.
Parameters: params - additional params for the dataset production. All elementsof this HashMap are of type java.io.Serializable . This isnecessary to ensure the the serialization of the dataset producer intothe http session. To provide a producer with additional productionparameters the <param> tag is used (see tag library documentation).It is recommended to synchronize implementations of this method to avoidconcurrency problems. an object of type org.jfree.data.Dataset . throws: DatasetProduceException - if an error occured during production since: 0.2 |
|
|
|