org.jfree.chart.urls
Class StandardCategoryURLGenerator
java.lang.Object
org.jfree.chart.urls.StandardCategoryURLGenerator
- CategoryURLGenerator, Cloneable, Serializable
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.
|
StandardCategoryURLGenerator
public StandardCategoryURLGenerator(String prefix)
Constructor that overrides default prefix to the URL.
prefix
- the prefix to the URL (null
not permitted).
StandardCategoryURLGenerator
public StandardCategoryURLGenerator(String prefix,
String seriesParameterName,
String categoryParameterName)
Constructor that overrides all the defaults.
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).
clone
public Object clone()
throws CloneNotSupportedException
Returns an independent copy of the URL generator.
equals
public boolean equals(Object obj)
Tests the generator for equality with an arbitrary object.
obj
- the object (null
permitted).
generateURL
public String generateURL(CategoryDataset dataset,
int series,
int category)
Generates a URL for a particular item within a series.
- generateURL in interface CategoryURLGenerator
dataset
- the dataset.series
- the series index (zero-based).category
- the category index (zero-based).
hashCode
public int hashCode()
Returns a hash code.