/** * Returns the name of a series. * * @param series the series index (zero-based). * * @return The name of a series. */ @Override public Comparable getSeriesKey(int series) { TaskSeries ts = (TaskSeries) this.data.get(series); return ts.getKey(); }
/** * Returns the name of a series. * * @param series the series index (zero-based). * * @return The name of a series. */ public Comparable getSeriesKey(int series) { TaskSeries ts = (TaskSeries) this.data.get(series); return ts.getKey(); }
/** * Returns the key for a row. * * @param index the row index (zero-based). * * @return The key. */ @Override public Comparable getRowKey(int index) { TaskSeries series = (TaskSeries) this.data.get(index); return series.getKey(); }
/** * Returns the key for a row. * * @param index the row index (zero-based). * * @return The key. */ public Comparable getRowKey(int index) { TaskSeries series = (TaskSeries) this.data.get(index); return series.getKey(); }
/** * Returns the row index for the given row key. * * @param rowKey the row key. * * @return The index. */ @Override public int getRowIndex(Comparable rowKey) { int result = -1; int count = this.data.size(); for (int i = 0; i < count; i++) { TaskSeries s = (TaskSeries) this.data.get(i); if (s.getKey().equals(rowKey)) { result = i; break; } } return result; }
/** * Returns the row index for the given row key. * * @param rowKey the row key. * * @return The index. */ public int getRowIndex(Comparable rowKey) { int result = -1; int count = this.data.size(); for (int i = 0; i < count; i++) { TaskSeries s = (TaskSeries) this.data.get(i); if (s.getKey().equals(rowKey)) { result = i; break; } } return result; }