Class CustomXYURLGenerator

java.lang.Object
org.jfree.chart.urls.CustomXYURLGenerator
All Implemented Interfaces:
Serializable, XYURLGenerator

public class CustomXYURLGenerator
extends Object
implements XYURLGenerator, Serializable
A custom URL generator.
Author:
Richard Atkinson
See Also:
Serialized Form
  • Constructor Details

    • CustomXYURLGenerator

      public CustomXYURLGenerator()
      Default constructor.
  • Method Details

    • getListCount

      public int getListCount()
      Returns the number of URL lists stored by the renderer.
      Returns:
      The list count.
    • getURLCount

      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.
    • getURL

      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.
    • generateURL

      public String generateURL​(XYDataset data, int series, int item)
      Generates a URL.
      Specified by:
      generateURL in interface XYURLGenerator
      Parameters:
      data - the dataset.
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      a string containing the URL.
    • addURLSeries

      public void addURLSeries​(List urls)
      Adds a list of URLs.
      Parameters:
      urls - the list of URLs.
    • equals

      public boolean equals​(Object o)
      Tests if this object is equal to another.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object.
      Returns:
      A boolean.