Package org.jfree.chart.urls
Class CustomXYURLGenerator
java.lang.Object
org.jfree.chart.urls.CustomXYURLGenerator
- All Implemented Interfaces:
Serializable,XYURLGenerator
public class CustomXYURLGenerator extends Object implements XYURLGenerator, Serializable
A custom URL generator.
- Author:
- Richard Atkinson
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description CustomXYURLGenerator()Default constructor. -
Method Summary
Modifier and Type Method Description voidaddURLSeries(List urls)Adds a list of URLs.booleanequals(Object o)Tests if this object is equal to another.StringgenerateURL(XYDataset data, 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 Details
-
CustomXYURLGenerator
public CustomXYURLGenerator()Default constructor.
-
-
Method Details
-
getListCount
public int getListCount()Returns the number of URL lists stored by the renderer.- Returns:
- The list count.
-
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.
-
getURL
Returns the URL for an item.- Parameters:
series- the series index.item- the item index.- Returns:
- The URL.
-
generateURL
Generates a URL.- Specified by:
generateURLin interfaceXYURLGenerator- Parameters:
data- the dataset.series- the series (zero-based index).item- the item (zero-based index).- Returns:
- a string containing the URL.
-
addURLSeries
Adds a list of URLs.- Parameters:
urls- the list of URLs.
-
equals
Tests if this object is equal to another.
-