Package org.jfree.chart.urls
Class StandardCategoryURLGenerator
java.lang.Object
org.jfree.chart.urls.StandardCategoryURLGenerator
- All Implemented Interfaces:
Serializable,Cloneable,CategoryURLGenerator
public class StandardCategoryURLGenerator
extends Object
implements CategoryURLGenerator, Cloneable, Serializable
A URL generator that can be assigned to a
CategoryItemRenderer.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns an independent copy of the URL generator.booleanTests the generator for equality with an arbitrary object.generateURL(CategoryDataset dataset, int series, int category) Generates a URL for a particular item within a series.inthashCode()Returns a hash code.
-
Constructor Details
-
StandardCategoryURLGenerator
public StandardCategoryURLGenerator()Creates a new generator with default settings. -
StandardCategoryURLGenerator
Constructor that overrides default prefix to the URL.- Parameters:
prefix- the prefix to the URL (nullnot permitted).
-
StandardCategoryURLGenerator
public StandardCategoryURLGenerator(String prefix, String seriesParameterName, String categoryParameterName) Constructor that overrides all the defaults.- Parameters:
prefix- the prefix to the URL (nullnot permitted).seriesParameterName- the name of the series parameter to go in each URL (nullnot permitted).categoryParameterName- the name of the category parameter to go in each URL (nullnot permitted).
-
-
Method Details
-
generateURL
Generates a URL for a particular item within a series.- Specified by:
generateURLin interfaceCategoryURLGenerator- Parameters:
dataset- the dataset.series- the series index (zero-based).category- the category index (zero-based).- Returns:
- The generated URL.
-
clone
Returns an independent copy of the URL generator.- Overrides:
clonein classObject- Returns:
- A clone.
- Throws:
CloneNotSupportedException- not thrown by this class, but subclasses (if any) might.
-
equals
Tests the generator for equality with an arbitrary object. -
hashCode
Returns a hash code.
-