Package org.jfree.chart.urls
Class TimeSeriesURLGenerator
java.lang.Object
org.jfree.chart.urls.TimeSeriesURLGenerator
- All Implemented Interfaces:
Serializable
,XYURLGenerator
public class TimeSeriesURLGenerator extends Object implements XYURLGenerator, Serializable
A URL generator.
- Author:
- Richard Atkinson
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description TimeSeriesURLGenerator()
Blank constructorTimeSeriesURLGenerator(DateFormat dDateFormat, String sPrefix, String sSeriesParameterName, String sItemParameterName)
Construct TimeSeriesURLGenerator overriding defaults -
Method Summary
Modifier and Type Method Description String
generateURL(XYDataset dataset, int series, int item)
Generates a URL for a particular item within a series.
-
Constructor Details
-
TimeSeriesURLGenerator
public TimeSeriesURLGenerator()Blank constructor -
TimeSeriesURLGenerator
public TimeSeriesURLGenerator(DateFormat dDateFormat, String sPrefix, String sSeriesParameterName, String sItemParameterName)Construct TimeSeriesURLGenerator overriding defaults- Parameters:
dDateFormat
- a formatter for the date.sPrefix
- the prefix of the URL.sSeriesParameterName
- the name of the series parameter in the URL.sItemParameterName
- the name of the item parameter in the URL.
-
-
Method Details
-
generateURL
Generates a URL for a particular item within a series.- Specified by:
generateURL
in interfaceXYURLGenerator
- Parameters:
dataset
- the dataset.series
- the series number (zero-based index).item
- the item number (zero-based index).- Returns:
- the generated URL.
-