| java.lang.Object org.jfree.chart.urls.CustomPieURLGenerator
Constructor Summary | |
public | CustomPieURLGenerator() Creates a new CustomPieURLGenerator instance, initially
empty. |
Method Summary | |
public 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. | public Object | clone() Returns a clone of the generator. | public boolean | equals(Object o) Tests if this object is equal to another.
Parameters: o - the other object. | public String | generateURL(PieDataset dataset, Comparable key, int pieIndex) Generates a URL fragment.
Parameters: dataset - the dataset (ignored). Parameters: key - the item key. Parameters: pieIndex - the pie index. | public int | getListCount() Returns the number of URL maps stored by the renderer. | public String | getURL(Comparable key, int mapIndex) Returns the URL for a section in the specified map.
Parameters: key - the key. Parameters: mapIndex - the map index. | public int | getURLCount(int list) Returns the number of URLs in a given map (specified by its position
in the map list).
Parameters: list - the list index (zero based). |
CustomPieURLGenerator | public CustomPieURLGenerator()(Code) | | Creates a new CustomPieURLGenerator instance, initially
empty. Call
CustomPieURLGenerator.addURLs(Map) to specify the URL fragments to be
used.
|
addURLs | public void addURLs(Map urlMap)(Code) | | 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.
The map is appended to an internal list...you can add multiple maps
if you are working with, say, a
MultiplePiePlot .
Parameters: urlMap - the URLs (null permitted). |
equals | public boolean equals(Object o)(Code) | | Tests if this object is equal to another.
Parameters: o - the other object. A boolean. |
getURL | public String getURL(Comparable key, int mapIndex)(Code) | | Returns the URL for a section in the specified map.
Parameters: key - the key. Parameters: mapIndex - the map index. The URL. |
getURLCount | public int getURLCount(int list)(Code) | | Returns the number of URLs in a given map (specified by its position
in the map list).
Parameters: list - the list index (zero based). The URL count. See Also: CustomPieURLGenerator.getListCount() |
|
|