Package org.jfree.chart.urls
Class StandardPieURLGenerator
java.lang.Object
org.jfree.chart.urls.StandardPieURLGenerator
- All Implemented Interfaces:
Serializable,PieURLGenerator
A URL generator for pie charts. Instances of this class are immutable.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.StandardPieURLGenerator(String prefix) Creates a new generator.StandardPieURLGenerator(String prefix, String categoryParamName) Creates a new generator.StandardPieURLGenerator(String prefix, String categoryParamName, String indexParamName) Creates a new generator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this object is equal to another.generateURL(PieDataset dataset, Comparable key, int pieIndex) Generates a URL.
-
Constructor Details
-
StandardPieURLGenerator
public StandardPieURLGenerator()Default constructor. -
StandardPieURLGenerator
Creates a new generator.- Parameters:
prefix- the prefix (nullnot permitted).
-
StandardPieURLGenerator
Creates a new generator.- Parameters:
prefix- the prefix (nullnot permitted).categoryParamName- the category parameter name (nullnot permitted).
-
StandardPieURLGenerator
Creates a new generator.- Parameters:
prefix- the prefix (nullnot permitted).categoryParamName- the category parameter name (nullnot permitted).indexParamName- the index parameter name (nullpermitted).
-
-
Method Details
-
generateURL
Generates a URL.- Specified by:
generateURLin interfacePieURLGenerator- Parameters:
dataset- the dataset (ignored).key- the item key (nullnot permitted).pieIndex- the pie index.- Returns:
- A string containing the generated URL.
-
equals
Tests if this object is equal to another.
-