/** * Generates a URL for a particular item within a series. * * @param dataset the dataset. * @param series the series index (zero-based). * @param item the item index (zero-based). * * @return A string containing the generated URL. */ public String generateURL(XYZDataset dataset, int series, int item) { return super.generateURL(dataset, series, item); }
/** * 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); }
/** * Generates a URL. * * @param dataset the dataset. * @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(XYDataset 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)) {
int listCount = getListCount(); if (listCount != that.getListCount()) { return false; int urlCount = getURLCount(series); if (urlCount != that.getURLCount(series)) { return false; String u1 = getURL(series, item); String u2 = that.getURL(series, item); if (u1 != null) { if (!u1.equals(u2)) {
private DataRow[] generateDataset(CategoryDataset dataset, CategoryURLGenerator urlGenerator) { final DataRow[] data = new DataRow[dataset.getColumnCount()]; // header for (int col = 0; col < dataset.getColumnCount(); col++) { Object key = dataset.getColumnKey(col); int unresolvedVal = dataset.getValue(0, col).intValue(); String unresolvedUrl = urlGenerator.generateURL(dataset, 0, col); int resolvedVal = dataset.getValue(1, col).intValue(); String resolvedUrl = urlGenerator.generateURL(dataset, 1, col); int totalCreatedVal = unresolvedVal + resolvedVal; data[col] = new DataRow(key, totalCreatedVal, resolvedVal, resolvedUrl, unresolvedVal, unresolvedUrl); } return data; }
/** * Generates a URL fragment. * * @param dataset the dataset (ignored). * @param key the item key. * @param pieIndex the pie index. * * @return A string containing the generated URL. * * @see #getURL(Comparable, int) */ @Override public String generateURL(PieDataset dataset, Comparable key, int pieIndex) { return getURL(key, pieIndex); }
/** * Returns the URL for a section in the specified map. * * @param key the key. * @param mapIndex the map index. * * @return The URL. */ public String getURL(Comparable key, int mapIndex) { String result = null; if (mapIndex < getListCount()) { Map urlMap = (Map) this.urls.get(mapIndex); if (urlMap != null) { result = (String) urlMap.get(key); } } return result; }
/** * 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; }
/** * 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)) {
int listCount = getListCount(); if (listCount != that.getListCount()) { return false; int urlCount = getURLCount(series); if (urlCount != that.getURLCount(series)) { return false; String u1 = getURL(series, item); String u2 = that.getURL(series, item); if (u1 != null) { if (!u1.equals(u2)) {
DataRow[] generateDataSet(CategoryDataset dataset, CategoryURLGenerator urlGenerator) { final DataRow[] data = new DataRow[dataset.getColumnCount()]; // header for (int col = 0; col < dataset.getColumnCount(); col++) { Comparable key = dataset.getColumnKey(col); int val = dataset.getValue(0, col).intValue(); String url = urlGenerator.generateURL(dataset, 0, col); int percentage = dataset.getValue(1, col).intValue(); data[col] = new DataRow(key, url, val, percentage); } return data; }
/** * Generates a URL for a particular item within a series. * * @param dataset the dataset. * @param series the series index (zero-based). * @param item the item index (zero-based). * * @return A string containing the generated URL. */ @Override public String generateURL(XYZDataset dataset, int series, int item) { return super.generateURL(dataset, series, item); }
/** * 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); }
/** * Generates a URL. * * @param dataset the dataset. * @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(XYDataset dataset, int series, int item) { return getURL(series, item); }
/** * Generates a URL fragment. * * @param dataset the dataset (ignored). * @param key the item key. * @param pieIndex the pie index. * * @return A string containing the generated URL. * * @see #getURL(Comparable, int) */ public String generateURL(PieDataset dataset, Comparable key, int pieIndex) { return getURL(key, pieIndex); }
/** * Returns the URL for a section in the specified map. * * @param key the key. * @param mapIndex the map index. * * @return The URL. */ public String getURL(Comparable key, int mapIndex) { String result = null; if (mapIndex < getListCount()) { Map urlMap = (Map) this.urls.get(mapIndex); if (urlMap != null) { result = (String) urlMap.get(key); } } return result; }
/** * 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; }
/** * 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; }