public class CustomCategoryURLGenerator extends java.lang.Object implements CategoryURLGenerator, java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
Constructor and Description |
---|
CustomCategoryURLGenerator()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addURLSeries(java.util.List urls)
Adds a list of URLs.
|
java.lang.Object |
clone()
Returns a new generator that is a copy of, and independent from, this
generator.
|
boolean |
equals(java.lang.Object obj)
Tests if this object is equal to another.
|
java.lang.String |
generateURL(CategoryDataset dataset,
int series,
int item)
Generates a URL.
|
int |
getListCount()
Returns the number of URL lists stored by the renderer.
|
java.lang.String |
getURL(int series,
int item)
Returns the URL for an item.
|
int |
getURLCount(int list)
Returns the number of URLs in a given list.
|
public CustomCategoryURLGenerator()
public int getListCount()
public int getURLCount(int list)
list
- the list index (zero based).public java.lang.String getURL(int series, int item)
series
- the series index.item
- the item index.null
).public java.lang.String generateURL(CategoryDataset dataset, int series, int item)
generateURL
in interface CategoryURLGenerator
dataset
- the dataset (ignored in this implementation).series
- the series (zero-based index).item
- the item (zero-based index).null
).public void addURLSeries(java.util.List urls)
urls
- the list of URLs (null
permitted).public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other object.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if there is a problem with cloning.