public Shape getNextShape() { return inner.getNextShape(); }
/** * Returns a shape used to represent the items in a series. * * @param series the series (zero-based index). * * @return The shape (never {@code null}). * * @since 1.0.6 */ public Shape lookupSeriesShape(int series) { Shape result = getSeriesShape(series); if (result == null && this.autoPopulateSeriesShape) { DrawingSupplier supplier = getDrawingSupplier(); if (supplier != null) { result = supplier.getNextShape(); setSeriesShape(series, result, false); } } if (result == null) { result = this.defaultShape; } return result; }
/** * Returns a shape used to represent the items in a series. * * @param series the series (zero-based index). * * @return The shape (never <code>null</code>). * * @since 1.0.6 */ public Shape lookupSeriesShape(int series) { // return the override, if there is one... if (this.shape != null) { return this.shape; } // otherwise look up the shape list Shape result = getSeriesShape(series); if (result == null && this.autoPopulateSeriesShape) { DrawingSupplier supplier = getDrawingSupplier(); if (supplier != null) { result = supplier.getNextShape(); setSeriesShape(series, result, false); } } if (result == null) { result = this.baseShape; } return result; }