/** * Overrides the method in the subclass to draw a shadow in the first pass. * * @param g2 the graphics device. * @param pass the pass. * @param series the series index (zero-based). * @param item the item index (zero-based). * @param shape the shape. */ protected void drawFirstPassShape(Graphics2D g2, int pass, int series, int item, Shape shape) { if (isShadowPass(pass)) { if (getWallPaint() != null) { g2.setStroke(getItemStroke(series, item)); g2.setPaint(getWallPaint()); g2.translate(getXOffset(), getYOffset()); g2.draw(shape); g2.translate(-getXOffset(), -getYOffset()); } } else { // now draw the real shape super.drawFirstPassShape(g2, pass, series, item, shape); } }
drawFirstPassShape(g2, pass, series, item, state.workingLine);
drawFirstPassShape(g2, pass, series, item, state.workingLine);
drawFirstPassShape(g2, pass, series, item, s.seriesPath);
drawFirstPassShape(g2, pass, series, item, s.seriesPath);