JFreeChart 1.0.14-redhat-2

org.jfree.chart.urls
Class StandardPieURLGenerator

java.lang.Object
  extended by 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
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 dataset, Comparable key, int pieIndex)
          Generates a URL.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardPieURLGenerator

public StandardPieURLGenerator()
Default constructor.


StandardPieURLGenerator

public StandardPieURLGenerator(String prefix)
Creates a new generator.

Parameters:
prefix - the prefix (null not permitted).

StandardPieURLGenerator

public StandardPieURLGenerator(String prefix,
                               String categoryParameterName)
Creates a new generator.

Parameters:
prefix - the prefix (null not permitted).
categoryParameterName - the category parameter name (null not permitted).

StandardPieURLGenerator

public StandardPieURLGenerator(String prefix,
                               String categoryParameterName,
                               String indexParameterName)
Creates a new generator.

Parameters:
prefix - the prefix (null not permitted).
categoryParameterName - the category parameter name (null not permitted).
indexParameterName - the index parameter name (null permitted).
Method Detail

generateURL

public String generateURL(PieDataset dataset,
                          Comparable key,
                          int pieIndex)
Generates a URL.

Specified by:
generateURL in interface PieURLGenerator
Parameters:
dataset - the dataset (ignored).
key - the item key (null not permitted).
pieIndex - the pie index.
Returns:
A string containing the generated URL.

equals

public boolean equals(Object obj)
Tests if this object is equal to another.

Overrides:
equals in class Object
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

JFreeChart 1.0.14-redhat-2

Copyright © 2001-2012 JFree.org. All Rights Reserved.