public class StandardCategoryURLGenerator extends Object implements CategoryURLGenerator, Cloneable, Serializable
CategoryItemRenderer.| Constructor and Description |
|---|
StandardCategoryURLGenerator()
Creates a new generator with default settings.
|
StandardCategoryURLGenerator(String prefix)
Constructor that overrides default prefix to the URL.
|
StandardCategoryURLGenerator(String prefix,
String seriesParameterName,
String categoryParameterName)
Constructor that overrides all the defaults.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns an independent copy of the URL generator.
|
boolean |
equals(Object obj)
Tests the generator for equality with an arbitrary object.
|
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(String prefix)
prefix - the prefix to the URL (null not permitted).public StandardCategoryURLGenerator(String prefix, String seriesParameterName, 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 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 Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - not thrown by this class, but
subclasses (if any) might.public boolean equals(Object obj)
Copyright © 2001–2014 JFree.org. All rights reserved.