org.jfree.chart.urls

Class StandardPieURLGenerator

Implemented Interfaces:
PieURLGenerator, Serializable

public class StandardPieURLGenerator
extends java.lang.Object
implements PieURLGenerator, Serializable

A URL generator for pie charts.
Author:
Richard Atkinson

Constructor Summary

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

boolean
equals(Object obj)
Tests if this object is equal to another.
String
generateURL(PieDataset data, Comparable key, int pieIndex)
Generates a URL.

Constructor Details

StandardPieURLGenerator

public StandardPieURLGenerator()
Default constructor.

StandardPieURLGenerator

public StandardPieURLGenerator(String prefix)
Creates a new generator.
Parameters:
prefix - the prefix.

StandardPieURLGenerator

public StandardPieURLGenerator(String prefix,
                               String categoryParameterName)
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 (null permitted).

Method Details

equals

public boolean equals(Object obj)
Tests if this object is equal to another.
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

generateURL

public String generateURL(PieDataset data,
                          Comparable key,
                          int pieIndex)
Generates a URL.
Specified by:
generateURL in interface PieURLGenerator
Parameters:
data - the dataset.
key - the item key.
pieIndex - the pie index (ignored).
Returns:
A string containing the generated URL.