Logo Search packages:      
Sourcecode: libjfreechart-java version File versions  Download package

Stroke org::jfree::chart::renderer::AbstractRenderer::lookupSeriesOutlineStroke ( int  series  )  [inline, inherited]

Returns the stroke used to outline the items in a series.

Parameters:
series the series (zero-based index).
Returns:
The stroke (never null).
Since:
1.0.6

Definition at line 1667 of file AbstractRenderer.java.

References org::jfree::chart::renderer::AbstractRenderer::autoPopulateSeriesOutlineStroke, org::jfree::chart::renderer::AbstractRenderer::baseOutlineStroke, org::jfree::chart::renderer::AbstractRenderer::getDrawingSupplier(), org::jfree::chart::plot::DrawingSupplier::getNextOutlineStroke(), org::jfree::chart::renderer::AbstractRenderer::getSeriesOutlineStroke(), org::jfree::chart::renderer::AbstractRenderer::outlineStroke, and org::jfree::chart::renderer::AbstractRenderer::setSeriesOutlineStroke().

Referenced by org::jfree::chart::renderer::xy::XYAreaRenderer2::drawItem(), org::jfree::chart::renderer::xy::StackedXYAreaRenderer::drawItem(), org::jfree::chart::renderer::AbstractRenderer::getItemOutlineStroke(), org::jfree::chart::renderer::xy::XYLineAndShapeRenderer::getLegendItem(), org::jfree::chart::renderer::xy::XYBubbleRenderer::getLegendItem(), org::jfree::chart::renderer::xy::XYBarRenderer::getLegendItem(), org::jfree::chart::renderer::xy::AbstractXYItemRenderer::getLegendItem(), org::jfree::chart::renderer::DefaultPolarItemRenderer::getLegendItem(), org::jfree::chart::renderer::category::ScatterRenderer::getLegendItem(), org::jfree::chart::renderer::category::LineAndShapeRenderer::getLegendItem(), org::jfree::chart::renderer::category::BoxAndWhiskerRenderer::getLegendItem(), org::jfree::chart::renderer::category::BarRenderer::getLegendItem(), org::jfree::chart::renderer::category::AreaRenderer::getLegendItem(), and org::jfree::chart::renderer::category::AbstractCategoryItemRenderer::getLegendItem().

                                                        {

        // return the override, if there is one...
        if (this.outlineStroke != null) {
            return this.outlineStroke;
        }

        // otherwise look up the stroke table
        Stroke result = getSeriesOutlineStroke(series);
        if (result == null && this.autoPopulateSeriesOutlineStroke) {
            DrawingSupplier supplier = getDrawingSupplier();
            if (supplier != null) {
                result = supplier.getNextOutlineStroke();
                setSeriesOutlineStroke(series, result, false);
            }
        }
        if (result == null) {
            result = this.baseOutlineStroke;
        }
        return result;

    }


Generated by  Doxygen 1.6.0   Back to index