/** * Generates a URL. * * @param dataset the dataset (ignored in this implementation). * @param series the series (zero-based index). * @param item the item (zero-based index). * * @return A string containing the URL (possibly <code>null</code>). */ public String generateURL(CategoryDataset dataset, int series, int item) { return getURL(series, item); }
int listCount = getListCount(); if (listCount != generator.getListCount()) { return false; int urlCount = getURLCount(series); if (urlCount != generator.getURLCount(series)) { return false; String u1 = getURL(series, item); String u2 = generator.getURL(series, item); if (u1 != null) { if (!u1.equals(u2)) {
/** * Returns the URL for an item. * * @param series the series index. * @param item the item index. * * @return The URL (possibly {@code null}). */ public String getURL(int series, int item) { String result = null; if (series < getListCount()) { List urls = (List) this.urlSeries.get(series); if (urls != null) { if (item < urls.size()) { result = (String) urls.get(item); } } } return result; }
int listCount = getListCount(); if (listCount != generator.getListCount()) { return false; int urlCount = getURLCount(series); if (urlCount != generator.getURLCount(series)) { return false; String u1 = getURL(series, item); String u2 = generator.getURL(series, item); if (u1 != null) { if (!u1.equals(u2)) {
/** * Returns the URL for an item. * * @param series the series index. * @param item the item index. * * @return The URL (possibly <code>null</code>). */ public String getURL(int series, int item) { String result = null; if (series < getListCount()) { List urls = (List) this.urlSeries.get(series); if (urls != null) { if (item < urls.size()) { result = (String) urls.get(item); } } } return result; }
/** * Generates a URL. * * @param dataset the dataset (ignored in this implementation). * @param series the series (zero-based index). * @param item the item (zero-based index). * * @return A string containing the URL (possibly {@code null}). */ @Override public String generateURL(CategoryDataset dataset, int series, int item) { return getURL(series, item); }