Package org.jfree.chart.urls
Class StandardXYURLGenerator
java.lang.Object
org.jfree.chart.urls.StandardXYURLGenerator
- All Implemented Interfaces:
Serializable
,XYURLGenerator
- Direct Known Subclasses:
StandardXYZURLGenerator
public class StandardXYURLGenerator extends Object implements XYURLGenerator, Serializable
A URL generator.
- Author:
- Richard Atkinson
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StandardXYURLGenerator()
Blank constructorStandardXYURLGenerator(String sPrefix)
Constructor that overrides default prefix to the URL.StandardXYURLGenerator(String prefix, String seriesParameterName, String itemParameterName)
Constructor that overrides all the defaults -
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
Tests this generator for equaliaty with an arbitrary object.String
generateURL(XYDataset dataset, int series, int item)
Generates a URL for a particular item within a series.
-
Constructor Details
-
StandardXYURLGenerator
public StandardXYURLGenerator()Blank constructor -
StandardXYURLGenerator
Constructor that overrides default prefix to the URL.- Parameters:
sPrefix
- the prefix to the URL
-
StandardXYURLGenerator
Constructor that overrides all the defaults- Parameters:
prefix
- the prefix to the URL.seriesParameterName
- the name of the series parameter to go in each URL.itemParameterName
- the name of the item parameter to go in each URL.
-
-
Method Details
-
generateURL
Generates a URL for a particular item within a series.- Specified by:
generateURL
in interfaceXYURLGenerator
- Parameters:
dataset
- the dataset.series
- the series number (zero-based index).item
- the item number (zero-based index).- Returns:
- the generated URL.
-
equals
Tests this generator for equaliaty with an arbitrary object.
-