org.jfree.chart.urls
Class CustomXYURLGenerator
java.lang.Object
org.jfree.chart.urls.CustomXYURLGenerator
- Serializable, XYURLGenerator
A custom URL generator.
void | addURLSeries(List urls) - Adds a list of URLs.
|
boolean | equals(Object o) - Tests if this object is equal to another.
|
String | generateURL(XYDataset dataset, int series, int item) - Generates a URL.
|
int | getListCount() - Returns the number of URL lists stored by the renderer.
|
String | getURL(int series, int item) - Returns the URL for an item.
|
int | getURLCount(int list) - Returns the number of URLs in a given list.
|
addURLSeries
public void addURLSeries(List urls)
Adds a list of URLs.
equals
public boolean equals(Object o)
Tests if this object is equal to another.
generateURL
public String generateURL(XYDataset dataset,
int series,
int item)
Generates a URL.
- generateURL in interface XYURLGenerator
dataset
- the dataset.series
- the series (zero-based index).item
- the item (zero-based index).
- A string containing the URL (possibly
null
).
getListCount
public int getListCount()
Returns the number of URL lists stored by the renderer.
getURL
public String getURL(int series,
int item)
Returns the URL for an item.
series
- the series index.item
- the item index.
getURLCount
public int getURLCount(int list)
Returns the number of URLs in a given list.
list
- the list index (zero based).