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

Object org::jfree::chart::renderer::xy::XYBarRenderer::clone (  )  throws CloneNotSupportedException [inline]

Returns a clone of the renderer.

Returns:
A clone.
Exceptions:
CloneNotSupportedException if the renderer cannot be cloned.

Reimplemented from org::jfree::chart::renderer::xy::AbstractXYItemRenderer.

Reimplemented in org::jfree::chart::renderer::xy::ClusteredXYBarRenderer.

Definition at line 938 of file XYBarRenderer.java.

References gradientPaintTransformer, and legendBar.

Referenced by org::jfree::chart::renderer::xy::junit::XYBarRendererTests::testCloning(), org::jfree::chart::renderer::xy::junit::StackedXYBarRendererTests::testCloning(), org::jfree::chart::renderer::xy::junit::AbstractXYItemRendererTests::testCloning_LegendItemLabelGenerator(), org::jfree::chart::renderer::xy::junit::AbstractXYItemRendererTests::testCloning_LegendItemToolTipGenerator(), and org::jfree::chart::renderer::xy::junit::AbstractXYItemRendererTests::testCloning_LegendItemURLGenerator().

                                                            {
        XYBarRenderer result = (XYBarRenderer) super.clone();
        if (this.gradientPaintTransformer != null) {
            result.gradientPaintTransformer = (GradientPaintTransformer)
                ObjectUtilities.clone(this.gradientPaintTransformer);
        }
        result.legendBar = ShapeUtilities.clone(this.legendBar);
        return result;
    }


Generated by  Doxygen 1.6.0   Back to index