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.
- Author:
- Richard Atkinson
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StandardPieURLGenerator()Default constructor.StandardPieURLGenerator(String prefix)Creates a new generator.StandardPieURLGenerator(String prefix, String categoryParameterName)Creates a new generator.StandardPieURLGenerator(String prefix, String categoryParameterName, String indexParameterName)Creates a new generator. -
Method Summary
Modifier and Type Method Description booleanequals(Object o)Tests if this object is equal to another.StringgenerateURL(PieDataset data, Comparable key, int pieIndex)Generates a URL.
-
Constructor Details
-
StandardPieURLGenerator
public StandardPieURLGenerator()Default constructor. -
StandardPieURLGenerator
Creates a new generator.- Parameters:
prefix- the prefix.
-
StandardPieURLGenerator
Creates a new generator.- Parameters:
prefix- the prefix.categoryParameterName- the category parameter name.
-
StandardPieURLGenerator
public StandardPieURLGenerator(String prefix, String categoryParameterName, String indexParameterName)Creates a new generator.- Parameters:
prefix- the prefix.categoryParameterName- the category parameter name.indexParameterName- the index parameter name (nullpermitted).
-
-
Method Details
-
generateURL
Generates a URL.- Specified by:
generateURLin interfacePieURLGenerator- Parameters:
data- the dataset.key- the item key.pieIndex- the pie index (ignored).- Returns:
- a string containing the generated URL.
-
equals
Tests if this object is equal to another.
-