public class StandardCategoryURLGenerator extends java.lang.Object implements CategoryURLGenerator, java.lang.Cloneable, java.io.Serializable
CategoryItemRenderer.| Constructor and Description |
|---|
StandardCategoryURLGenerator()
Creates a new generator with default settings.
|
StandardCategoryURLGenerator(java.lang.String prefix)
Constructor that overrides default prefix to the URL.
|
StandardCategoryURLGenerator(java.lang.String prefix,
java.lang.String seriesParameterName,
java.lang.String categoryParameterName)
Constructor that overrides all the defaults.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns an independent copy of the URL generator.
|
boolean |
equals(java.lang.Object obj)
Tests the generator for equality with an arbitrary object.
|
java.lang.String |
generateURL(CategoryDataset dataset,
int series,
int category)
Generates a URL for a particular item within a series.
|
int |
hashCode()
Returns a hash code.
|
public StandardCategoryURLGenerator()
public StandardCategoryURLGenerator(java.lang.String prefix)
prefix - the prefix to the URL (null not permitted).public StandardCategoryURLGenerator(java.lang.String prefix, java.lang.String seriesParameterName, java.lang.String categoryParameterName)
prefix - the prefix to the URL (null not permitted).seriesParameterName - the name of the series parameter to go in
each URL (null not permitted).categoryParameterName - the name of the category parameter to go in
each URL (null not permitted).public java.lang.String generateURL(CategoryDataset dataset, int series, int category)
generateURL in interface CategoryURLGeneratordataset - the dataset.series - the series index (zero-based).category - the category index (zero-based).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - not thrown by this class, but
subclasses (if any) might.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).public int hashCode()
hashCode in class java.lang.Object