public class

CustomXYURLGenerator

extends Object
implements Serializable Cloneable XYURLGenerator
java.lang.Object
   ↳ org.jfree.chart.urls.CustomXYURLGenerator

Class Overview

A custom URL generator.

Summary

Public Constructors
CustomXYURLGenerator()
Default constructor.
Public Methods
void addURLSeries(List urls)
Adds a list of URLs.
Object clone()
Returns a new generator that is a copy of, and independent from, this generator.
boolean equals(Object obj)
Tests this generator for equality with an arbitrary object.
String generateURL(XYDataset dataset, int series, int item)
Generates a URL.
int getListCount()
Returns the number of URL lists stored by the renderer.
String getURL(int series, int item)
Returns the URL for an item.
int getURLCount(int list)
Returns the number of URLs in a given list.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.chart.urls.XYURLGenerator

Public Constructors

public CustomXYURLGenerator ()

Default constructor.

Public Methods

public void addURLSeries (List urls)

Adds a list of URLs.

Parameters
urls the list of URLs (null permitted, the list is copied).

public Object clone ()

Returns a new generator that is a copy of, and independent from, this generator.

Returns
  • A clone.
Throws
CloneNotSupportedException if there is a problem with cloning.

public boolean equals (Object obj)

Tests this generator for equality with an arbitrary object.

Parameters
obj the object (null permitted).
Returns
  • A boolean.

public String generateURL (XYDataset dataset, int series, int item)

Generates a URL.

Parameters
dataset the dataset.
series the series (zero-based index).
item the item (zero-based index).
Returns
  • A string containing the URL (possibly null).

public int getListCount ()

Returns the number of URL lists stored by the renderer.

Returns
  • The list count.

public String getURL (int series, int item)

Returns the URL for an item.

Parameters
series the series index.
item the item index.
Returns
  • The URL (possibly null).

public int getURLCount (int list)

Returns the number of URLs in a given list.

Parameters
list the list index (zero based).
Returns
  • The URL count.