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

void org::jfree::chart::renderer::xy::XYBarRenderer::setLegendBar ( Shape  bar  )  [inline]

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

Parameters:
bar the bar shape (null not permitted).
See also:
getLegendBar()

Definition at line 392 of file XYBarRenderer.java.

References org::jfree::chart::renderer::AbstractRenderer::fireChangeEvent(), and legendBar.

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

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


Generated by  Doxygen 1.6.0   Back to index