org.jfree.chart.urls
public class StandardXYURLGenerator extends Object implements XYURLGenerator, Serializable
Field Summary | |
---|---|
static String | DEFAULT_ITEM_PARAMETER The default item parameter. |
static String | DEFAULT_PREFIX The default prefix. |
static String | DEFAULT_SERIES_PARAMETER The default series parameter. |
Constructor Summary | |
---|---|
StandardXYURLGenerator()
Creates a new default generator. | |
StandardXYURLGenerator(String prefix)
Creates a new generator with the specified prefix. | |
StandardXYURLGenerator(String prefix, String seriesParameterName, String itemParameterName)
Constructor that overrides all the defaults
|
Method Summary | |
---|---|
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.
|
StandardXYURLGenerator("index.html", "series", "item");
.StandardXYURLGenerator(prefix, "series", "item");
.
Parameters: prefix the prefix to the URL (null
not permitted).
Parameters: 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).
Parameters: obj the object (null
permitted).
Returns: A boolean.
Parameters: dataset the dataset. series the series number (zero-based index). item the item number (zero-based index).
Returns: The generated URL.