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 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

      public String generateURL​(XYDataset dataset, int series, int item)
      Generates a URL for a particular item within a series.
      Specified by:
      generateURL in interface XYURLGenerator
      Parameters:
      dataset - the dataset.
      series - the series number (zero-based index).
      item - the item number (zero-based index).
      Returns:
      the generated URL.