org.jfree.chart.urls
Class StandardXYURLGenerator
java.lang.Object
org.jfree.chart.urls.StandardXYURLGenerator
- Serializable, XYURLGenerator
A URL generator.
boolean | equals(Object obj) - Tests this generator for equality with an arbitrary object.
|
String | generateURL(XYDataset dataset, int series, int item) - Generates a URL for a particular item within a series.
|
DEFAULT_PREFIX
public static final String DEFAULT_PREFIX
The default prefix.
StandardXYURLGenerator
public StandardXYURLGenerator()
Creates a new default generator. This constructor is equivalent to
calling StandardXYURLGenerator("index.html", "series", "item");
.
StandardXYURLGenerator
public StandardXYURLGenerator(String prefix)
Creates a new generator with the specified prefix. This constructor
is equivalent to calling
StandardXYURLGenerator(prefix, "series", "item");
.
prefix
- the prefix to the URL (null
not permitted).
StandardXYURLGenerator
public StandardXYURLGenerator(String prefix,
String seriesParameterName,
String itemParameterName)
Constructor that overrides all the defaults
prefix
- the prefix to the URL (null
not permitted).seriesParameterName
- the name of the series parameter to go in
each URL (null
not permitted).itemParameterName
- the name of the item parameter to go in each
URL (null
not permitted).
equals
public boolean equals(Object obj)
Tests this generator for equality with an arbitrary object.
obj
- the object (null
permitted).
generateURL
public String generateURL(XYDataset dataset,
int series,
int item)
Generates a URL for a particular item within a series.
- generateURL in interface XYURLGenerator
dataset
- the dataset.series
- the series number (zero-based index).item
- the item number (zero-based index).