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 boolean
equals(Object obj)
Tests if this object is equal to another.String
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 (null
not permitted).
-
StandardPieURLGenerator
Creates a new generator.- Parameters:
prefix
- the prefix (null
not permitted).categoryParamName
- the category parameter name (null
not permitted).
-
StandardPieURLGenerator
Creates a new generator.- Parameters:
prefix
- the prefix (null
not permitted).categoryParamName
- the category parameter name (null
not permitted).indexParamName
- the index parameter name (null
permitted).
-
-
Method Details
-
generateURL
Generates a URL.- Specified by:
generateURL
in interfacePieURLGenerator
- Parameters:
dataset
- the dataset (ignored).key
- the item key (null
not permitted).pieIndex
- the pie index.- Returns:
- A string containing the generated URL.
-
equals
Tests if this object is equal to another.
-