org.jfree.chart.urls
Class CustomPieURLGenerator
java.lang.Object
org.jfree.chart.urls.CustomPieURLGenerator
- Cloneable, PieURLGenerator, PublicCloneable, Serializable
A custom URL generator for pie charts.
void | addURLs(Map urlMap) - Adds a map of URLs.
|
Object | clone() - Returns a clone of the generator.
|
boolean | equals(Object o) - Tests if this object is equal to another.
|
String | generateURL(PieDataset dataset, Comparable key, int pieIndex) - Generates a URL.
|
int | getListCount() - Returns the number of URL lists stored by the renderer.
|
String | getURL(Comparable key, int pieItem) - Returns the URL for an item.
|
int | getURLCount(int list) - Returns the number of URLs in a given list.
|
addURLs
public void addURLs(Map urlMap)
Adds a map of URLs.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of the generator.
equals
public boolean equals(Object o)
Tests if this object is equal to another.
generateURL
public String generateURL(PieDataset dataset,
Comparable key,
int pieIndex)
Generates a URL.
- generateURL in interface PieURLGenerator
dataset
- the dataset.key
- the item key.pieIndex
- the pie index (ignored).
- A string containing the generated URL.
getListCount
public int getListCount()
Returns the number of URL lists stored by the renderer.
getURL
public String getURL(Comparable key,
int pieItem)
Returns the URL for an item.
key
- the key.pieItem
- the item index.
getURLCount
public int getURLCount(int list)
Returns the number of URLs in a given list.
list
- the list index (zero based).