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

void org::jfree::chart::renderer::xy::XYLineAndShapeRenderer::setLegendLine ( Shape  line  )  [inline, inherited]

Sets the shape used as a line in each legend item and sends a RendererChangeEvent to all registered listeners.

Parameters:
line the line (null not permitted).
See also:
getLegendLine()

Definition at line 412 of file XYLineAndShapeRenderer.java.

References org::jfree::chart::renderer::AbstractRenderer::fireChangeEvent(), and org::jfree::chart::renderer::xy::XYLineAndShapeRenderer::legendLine.

Referenced by org::jfree::chart::renderer::xy::junit::XYSplineRendererTests::testCloning(), org::jfree::chart::renderer::xy::junit::XYLineAndShapeRendererTests::testCloning(), and org::jfree::chart::renderer::xy::junit::XYLineAndShapeRendererTests::testEquals().

                                          {
        if (line == null) {
            throw new IllegalArgumentException("Null 'line' argument.");
        }
        this.legendLine = line;
        fireChangeEvent();
    }


Generated by  Doxygen 1.6.0   Back to index