|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.urls.CustomPieURLGenerator
public class CustomPieURLGenerator
A custom URL generator for pie charts.
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). |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomPieURLGenerator()
CustomPieURLGenerator
instance, initially
empty. Call addURLs(Map)
to specify the URL fragments to be
used.
Method Detail |
---|
public String generateURL(PieDataset dataset, Comparable key, int pieIndex)
generateURL
in interface PieURLGenerator
dataset
- the dataset (ignored).key
- the item key.pieIndex
- the pie index.
getURL(Comparable, int)
public int getListCount()
addURLs(Map)
public int getURLCount(int list)
list
- the list index (zero based).
getListCount()
public String getURL(Comparable key, int mapIndex)
key
- the key.mapIndex
- the map index.
public void addURLs(Map urlMap)
(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.
MultiplePiePlot
.
urlMap
- the URLs (null
permitted).public boolean equals(Object o)
equals
in class Object
o
- the other object.
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class Object
CloneNotSupportedException
- if cloning is not supported.
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |