- java.lang.Object
-
- org.jfree.chart.urls.TimeSeriesURLGenerator
-
- All Implemented Interfaces:
Serializable,XYURLGenerator
public class TimeSeriesURLGenerator extends Object implements XYURLGenerator, Serializable
A URL generator for time series charts.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeSeriesURLGenerator()Default constructor.TimeSeriesURLGenerator(DateFormat dateFormat, String prefix, String seriesParameterName, String itemParameterName)Construct TimeSeriesURLGenerator overriding defaults.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Tests this generator for equality with an arbitrary object.StringgenerateURL(XYDataset dataset, int series, int item)Generates a URL for a particular item within a series.DateFormatgetDateFormat()Returns a clone of the date format assigned to this URL generator.StringgetItemParameterName()Returns the item parameter name.StringgetPrefix()Returns the prefix string.StringgetSeriesParameterName()Returns the series parameter name.
-
-
-
Constructor Detail
-
TimeSeriesURLGenerator
public TimeSeriesURLGenerator()
Default constructor.
-
TimeSeriesURLGenerator
public TimeSeriesURLGenerator(DateFormat dateFormat, String prefix, String seriesParameterName, String itemParameterName)
Construct TimeSeriesURLGenerator overriding defaults.- Parameters:
dateFormat- a formatter for the date (nullnot permitted).prefix- the prefix of the URL (nullnot permitted).seriesParameterName- the name of the series parameter in the URL (nullnot permitted).itemParameterName- the name of the item parameter in the URL (nullnot permitted).
-
-
Method Detail
-
getDateFormat
public DateFormat getDateFormat()
Returns a clone of the date format assigned to this URL generator.- Returns:
- The date format (never
null).
-
getPrefix
public String getPrefix()
Returns the prefix string.- Returns:
- The prefix string (never
null).
-
getSeriesParameterName
public String getSeriesParameterName()
Returns the series parameter name.- Returns:
- The series parameter name (never
null).
-
getItemParameterName
public String getItemParameterName()
Returns the item parameter name.- Returns:
- The item parameter name (never
null).
-
generateURL
public String generateURL(XYDataset dataset, int series, int item)
Generates a URL for a particular item within a series.- Specified by:
generateURLin interfaceXYURLGenerator- Parameters:
dataset- the dataset (nullnot permitted).series- the series number (zero-based index).item- the item number (zero-based index).- Returns:
- The generated URL.
-
-