org.jfree.chart.urls

Class CustomXYURLGenerator

public class CustomXYURLGenerator extends Object implements XYURLGenerator, Serializable

A custom URL generator.
Constructor Summary
CustomXYURLGenerator()
Default constructor.
Method Summary
voidaddURLSeries(List urls)
Adds a list of URLs.
booleanequals(Object o)
Tests if this object is equal to another.
StringgenerateURL(XYDataset dataset, int series, int item)
Generates a URL.
intgetListCount()
Returns the number of URL lists stored by the renderer.
StringgetURL(int series, int item)
Returns the URL for an item.
intgetURLCount(int list)
Returns the number of URLs in a given list.

Constructor Detail

CustomXYURLGenerator

public CustomXYURLGenerator()
Default constructor.

Method Detail

addURLSeries

public void addURLSeries(List urls)
Adds a list of URLs.

Parameters: urls the list of URLs.

equals

public boolean equals(Object o)
Tests if this object is equal to another.

Parameters: o the other object.

Returns: A boolean.

generateURL

public String generateURL(XYDataset dataset, int series, int item)
Generates a URL.

Parameters: dataset the dataset. series the series (zero-based index). item the item (zero-based index).

Returns: A string containing the URL (possibly null).

getListCount

public int getListCount()
Returns the number of URL lists stored by the renderer.

Returns: The list count.

getURL

public String getURL(int series, int item)
Returns the URL for an item.

Parameters: series the series index. item the item index.

Returns: The URL (possibly null).

getURLCount

public int getURLCount(int list)
Returns the number of URLs in a given list.

Parameters: list the list index (zero based).

Returns: The URL count.