Package org.jfree.chart.urls
Class StandardPieURLGenerator
java.lang.Object
org.jfree.chart.urls.StandardPieURLGenerator
- All Implemented Interfaces:
Serializable,PieURLGenerator
public class StandardPieURLGenerator extends Object implements PieURLGenerator, Serializable
A URL generator for pie charts. Instances of this class are immutable.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StandardPieURLGenerator()Default 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 Type Method Description booleanequals(Object obj)Tests if this object is equal to another.StringgenerateURL(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.
-