org.jfree.chart.urls
public class CustomPieURLGenerator extends Object implements PieURLGenerator, Cloneable, PublicCloneable, Serializable
Constructor Summary | |
---|---|
CustomPieURLGenerator()
Creates a new CustomPieURLGenerator instance, initially
empty. |
Method Summary | |
---|---|
void | addURLs(Map urlMap)
Adds a map containing (key, URL) mappings where each
key is an instance of Comparable
(corresponding to the key for an item in a pie dataset) and each
URL is a String representing a URL fragment.
|
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 fragment.
|
int | getListCount()
Returns the number of URL maps stored by the renderer.
|
String | getURL(Comparable key, int mapIndex)
Returns the URL for a section in the specified map.
|
int | getURLCount(int list)
Returns the number of URLs in a given map (specified by its position
in the map list).
|
CustomPieURLGenerator
instance, initially
empty. Call addURLs to specify the URL fragments to be
used.(key, URL)
mappings where each
key
is an instance of Comparable
(corresponding to the key for an item in a pie dataset) and each
URL
is a String
representing a URL fragment.
Parameters: urlMap the URLs (null
permitted).
Returns: A clone.
Throws: CloneNotSupportedException if cloning is not supported.
Parameters: o the other object.
Returns: A boolean.
Parameters: dataset the dataset (ignored). key the item key. pieIndex the pie index.
Returns: A string containing the generated URL.
See Also: CustomPieURLGenerator
Returns: The list count.
See Also: addURLs
Parameters: key the key. mapIndex the map index.
Returns: The URL.
Parameters: list the list index (zero based).
Returns: The URL count.
See Also: getListCount