Package org.jfree.chart.urls
Class CustomPieURLGenerator
java.lang.Object
org.jfree.chart.urls.CustomPieURLGenerator
- All Implemented Interfaces:
Serializable,Cloneable,PieURLGenerator,org.jfree.util.PublicCloneable
public class CustomPieURLGenerator extends Object implements PieURLGenerator, Cloneable, org.jfree.util.PublicCloneable, Serializable
A custom URL generator for pie charts.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description CustomPieURLGenerator()Default constructor. -
Method Summary
Modifier and Type Method Description voidaddURLs(Map urlMap)Adds a map of URLs.Objectclone()Returns a clone of the generator.booleanequals(Object o)Tests if this object is equal to another.StringgenerateURL(PieDataset dataset, Comparable key, int pieIndex)Generates a URL.intgetListCount()Returns the number of URL lists stored by the renderer.StringgetURL(Comparable key, int pieItem)Returns the URL for an item.intgetURLCount(int list)Returns the number of URLs in a given list.
-
Constructor Details
-
CustomPieURLGenerator
public CustomPieURLGenerator()Default constructor.
-
-
Method Details
-
generateURL
Generates a URL.- Specified by:
generateURLin interfacePieURLGenerator- Parameters:
dataset- the dataset.key- the item key.pieIndex- the pie index (ignored).- Returns:
- a string containing the generated URL.
-
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:
key- the key.pieItem- the item index.- Returns:
- The URL.
-
addURLs
Adds a map of URLs.- Parameters:
urlMap- the URLs.
-
equals
Tests if this object is equal to another. -
clone
Returns a clone of the generator.- Specified by:
clonein interfaceorg.jfree.util.PublicCloneable- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if cloning is not supported.
-