com.jrefinery.chart.urls
Class StandardCategoryURLGenerator
java.lang.Object
|
+--com.jrefinery.chart.urls.StandardCategoryURLGenerator
- All Implemented Interfaces:
- CategoryURLGenerator, URLGenerator
- public class StandardCategoryURLGenerator
- extends java.lang.Object
- implements CategoryURLGenerator
A URL generator.
- Author:
- RA
Method Summary |
java.lang.String |
generateURL(CategoryDataset data,
int series,
java.lang.Object category)
Generates a URL for a particular item within a series. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardCategoryURLGenerator
public StandardCategoryURLGenerator()
- Blank constructor
StandardCategoryURLGenerator
public StandardCategoryURLGenerator(java.lang.String prefix)
- Constructor that overrides default prefix to the URL.
- Parameters:
prefix
- the prefix to the URL
StandardCategoryURLGenerator
public StandardCategoryURLGenerator(java.lang.String prefix,
java.lang.String seriesParameterName,
java.lang.String categoryParameterName)
- Constructor that overrides all the defaults.
- Parameters:
prefix
- the prefix to the URL.seriesParameterName
- the name of the series parameter to go in each URL.categoryParameterName
- the name of the category parameter to go in each URL.
generateURL
public java.lang.String generateURL(CategoryDataset data,
int series,
java.lang.Object category)
- Generates a URL for a particular item within a series.
- Specified by:
generateURL
in interface CategoryURLGenerator
- Parameters:
data
- the dataset.series
- the series number (zero-based index).category
- the category.- Returns:
- the generated URL