public class TimeSeriesURLGenerator extends java.lang.Object implements XYURLGenerator, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.text.DateFormat |
dateFormat
A formatter for the date.
|
private java.lang.String |
itemParameterName
Name to use to identify the item
|
private java.lang.String |
prefix
Prefix to the URL
|
private static long |
serialVersionUID
For serialization.
|
private java.lang.String |
seriesParameterName
Name to use to identify the series
|
| Constructor and Description |
|---|
TimeSeriesURLGenerator()
Default constructor.
|
TimeSeriesURLGenerator(java.text.DateFormat dateFormat,
java.lang.String prefix,
java.lang.String seriesParameterName,
java.lang.String itemParameterName)
Construct TimeSeriesURLGenerator overriding defaults.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this generator for equality with an arbitrary object.
|
java.lang.String |
generateURL(XYDataset dataset,
int series,
int item)
Generates a URL for a particular item within a series.
|
java.text.DateFormat |
getDateFormat()
Returns a clone of the date format assigned to this URL generator.
|
java.lang.String |
getItemParameterName()
Returns the item parameter name.
|
java.lang.String |
getPrefix()
Returns the prefix string.
|
java.lang.String |
getSeriesParameterName()
Returns the series parameter name.
|
private static final long serialVersionUID
private java.text.DateFormat dateFormat
private java.lang.String prefix
private java.lang.String seriesParameterName
private java.lang.String itemParameterName
public TimeSeriesURLGenerator()
public TimeSeriesURLGenerator(java.text.DateFormat dateFormat,
java.lang.String prefix,
java.lang.String seriesParameterName,
java.lang.String itemParameterName)
dateFormat - a formatter for the date (null not
permitted).prefix - the prefix of the URL (null not permitted).seriesParameterName - the name of the series parameter in the URL
(null not permitted).itemParameterName - the name of the item parameter in the URL
(null not permitted).public java.text.DateFormat getDateFormat()
null).public java.lang.String getPrefix()
null).public java.lang.String getSeriesParameterName()
null).public java.lang.String getItemParameterName()
null).public java.lang.String generateURL(XYDataset dataset, int series, int item)
generateURL in interface XYURLGeneratordataset - the dataset (null not permitted).series - the series number (zero-based index).item - the item number (zero-based index).public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).