public class StandardPieURLGenerator extends java.lang.Object implements PieURLGenerator, java.io.Serializable
Constructor and Description |
---|
StandardPieURLGenerator()
Default constructor.
|
StandardPieURLGenerator(java.lang.String prefix)
Creates a new generator.
|
StandardPieURLGenerator(java.lang.String prefix,
java.lang.String categoryParamName)
Creates a new generator.
|
StandardPieURLGenerator(java.lang.String prefix,
java.lang.String categoryParamName,
java.lang.String indexParamName)
Creates a new generator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tests if this object is equal to another.
|
java.lang.String |
generateURL(PieDataset dataset,
java.lang.Comparable key,
int pieIndex)
Generates a URL.
|
public StandardPieURLGenerator()
public StandardPieURLGenerator(java.lang.String prefix)
prefix
- the prefix (null
not permitted).public StandardPieURLGenerator(java.lang.String prefix, java.lang.String categoryParamName)
prefix
- the prefix (null
not permitted).categoryParamName
- the category parameter name (null
not
permitted).public StandardPieURLGenerator(java.lang.String prefix, java.lang.String categoryParamName, java.lang.String indexParamName)
prefix
- the prefix (null
not permitted).categoryParamName
- the category parameter name (null
not
permitted).indexParamName
- the index parameter name (null
permitted).public java.lang.String generateURL(PieDataset dataset, java.lang.Comparable key, int pieIndex)
generateURL
in interface PieURLGenerator
dataset
- the dataset (ignored).key
- the item key (null
not permitted).pieIndex
- the pie index.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).