- 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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ITEM_PARAMETERThe default item parameter.static StringDEFAULT_PREFIXThe default prefix.static StringDEFAULT_SERIES_PARAMETERThe default series parameter.
-
Constructor Summary
Constructors Constructor Description StandardXYURLGenerator()Creates a new default generator.StandardXYURLGenerator(String prefix)Creates a new generator with the specified prefix.StandardXYURLGenerator(String prefix, String seriesParameterName, String itemParameterName)Constructor that overrides all the defaults
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Tests this generator for equality with an arbitrary object.StringgenerateURL(XYDataset dataset, int series, int item)Generates a URL for a particular item within a series.
-
-
-
Field Detail
-
DEFAULT_PREFIX
public static final String DEFAULT_PREFIX
The default prefix.- See Also:
- Constant Field Values
-
DEFAULT_SERIES_PARAMETER
public static final String DEFAULT_SERIES_PARAMETER
The default series parameter.- See Also:
- Constant Field Values
-
DEFAULT_ITEM_PARAMETER
public static final String DEFAULT_ITEM_PARAMETER
The default item parameter.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StandardXYURLGenerator
public StandardXYURLGenerator()
Creates a new default generator. This constructor is equivalent to callingStandardXYURLGenerator("index.html", "series", "item");.
-
StandardXYURLGenerator
public StandardXYURLGenerator(String prefix)
Creates a new generator with the specified prefix. This constructor is equivalent to callingStandardXYURLGenerator(prefix, "series", "item");.- Parameters:
prefix- the prefix to the URL (nullnot permitted).
-
StandardXYURLGenerator
public StandardXYURLGenerator(String prefix, String seriesParameterName, String itemParameterName)
Constructor that overrides all the defaults- Parameters:
prefix- the prefix to the URL (nullnot permitted).seriesParameterName- the name of the series parameter to go in each URL (nullnot permitted).itemParameterName- the name of the item parameter to go in each URL (nullnot permitted).
-
-
Method Detail
-
generateURL
public String generateURL(XYDataset dataset, int series, int item)
Generates a URL for a particular item within a series.- Specified by:
generateURLin interfaceXYURLGenerator- Parameters:
dataset- the dataset.series- the series number (zero-based index).item- the item number (zero-based index).- Returns:
- The generated URL.
-
-