/** * Returns the end value for the interval for a given series and category. * * @param series the series (zero-based index). * @param category the category (zero-based index). * * @return The end value (possibly <code>null</code>). */ public Number getEndValue(int series, int category) { return this.underlying.getEndValue(series, category + this.firstCategoryIndex); }
/** * Returns the end value for the interval for a given series and category. * * @param series the series (zero-based index). * @param category the category (zero-based index). * * @return The end value (possibly {@code null}). */ @Override public Number getEndValue(int series, int category) { return this.underlying.getEndValue(series, category + this.firstCategoryIndex); }
/** * Returns the end value of a sub-interval for a given item. * * @param row the row index (zero-based). * @param column the column index (zero-based). * @param subinterval the sub-interval. * * @return The end value (possibly <code>null</code>). * * @see #getStartValue(int, int, int) */ public Number getEndValue(int row, int column, int subinterval) { return this.underlying.getEndValue(row, column + this.firstCategoryIndex, subinterval); }
/** * Returns the end value of a sub-interval for a given item. * * @param row the row index (zero-based). * @param column the column index (zero-based). * @param subinterval the sub-interval. * * @return The end value (possibly {@code null}). * * @see #getStartValue(int, int, int) */ @Override public Number getEndValue(int row, int column, int subinterval) { return this.underlying.getEndValue(row, column + this.firstCategoryIndex, subinterval); }
/** * Returns the end value for the interval for a given series and category. * * @param rowKey the series key. * @param columnKey the category key. * * @return The end value (possibly <code>null</code>). * * @see #getStartValue(Comparable, Comparable) */ public Number getEndValue(Comparable rowKey, Comparable columnKey) { int r = getRowIndex(rowKey); int c = getColumnIndex(columnKey); if (c != -1) { return this.underlying.getEndValue(r, c + this.firstCategoryIndex); } else { throw new UnknownKeyException("Unknown columnKey: " + columnKey); } }
/** * Returns the end value of a sub-interval for a given item. * * @param rowKey the row key. * @param columnKey the column key. * @param subinterval the sub-interval. * * @return The end value (possibly <code>null</code>). * * @see #getStartValue(Comparable, Comparable, int) */ public Number getEndValue(Comparable rowKey, Comparable columnKey, int subinterval) { int r = getRowIndex(rowKey); int c = getColumnIndex(columnKey); if (c != -1) { return this.underlying.getEndValue(r, c + this.firstCategoryIndex, subinterval); } else { throw new UnknownKeyException("Unknown columnKey: " + columnKey); } }
/** * Returns the end value for the interval for a given series and category. * * @param rowKey the series key. * @param columnKey the category key. * * @return The end value (possibly {@code null}). * * @see #getStartValue(Comparable, Comparable) */ @Override public Number getEndValue(Comparable rowKey, Comparable columnKey) { int r = getRowIndex(rowKey); int c = getColumnIndex(columnKey); if (c == -1) { throw new UnknownKeyException("Unknown columnKey: " + columnKey); } else if (r == -1) { throw new UnknownKeyException("Unknown rowKey: " + rowKey); } else { return this.underlying.getEndValue(r, c + this.firstCategoryIndex); } }
/** * Returns the end value of a sub-interval for a given item. * * @param rowKey the row key. * @param columnKey the column key. * @param subinterval the sub-interval. * * @return The end value (possibly {@code null}). * * @see #getStartValue(Comparable, Comparable, int) */ @Override public Number getEndValue(Comparable rowKey, Comparable columnKey, int subinterval) { int r = getRowIndex(rowKey); int c = getColumnIndex(columnKey); if (c == -1) { throw new UnknownKeyException("Unknown columnKey: " + columnKey); } else if (r == -1) { throw new UnknownKeyException("Unknown rowKey: " + rowKey); } else { return this.underlying.getEndValue(r, c + this.firstCategoryIndex, subinterval); } }
Number value0 = dataset.getEndValue(row, column); if (value0 == null) { return;
Number value0 = dataset.getEndValue(row, column); if (value0 == null) { return;
Number value1 = dataset.getEndValue(row, column, subinterval); if (value1 == null) { return;
Number value1 = dataset.getEndValue(row, column, subinterval); if (value1 == null) { return;
/** * decode CategoryItemEntity into key-value pair of Area's componentScope. * @param area the Area where the final attribute is set * @param info the CategoryItemEntity to be decoded. */ private void decodeCategoryInfo(Area area, CategoryItemEntity info) { if (info == null) { return; } CategoryDataset dataset = info.getDataset(); Comparable category = info.getColumnKey(); Comparable series = info.getRowKey(); area.setAttribute("series", series); area.setAttribute("category", category); if (dataset instanceof GanttCategoryDataset) { final GanttCategoryDataset gd = (GanttCategoryDataset) dataset; area.setAttribute("start", gd.getStartValue(series, category)); area.setAttribute("end", gd.getEndValue(series, category)); area.setAttribute("percent", gd.getPercentComplete(series, category)); } else { area.setAttribute("value", dataset.getValue(series, category)); } }