Example usage for org.jfree.chart.renderer.category BarRenderer3D setBaseSeriesVisibleInLegend

List of usage examples for org.jfree.chart.renderer.category BarRenderer3D setBaseSeriesVisibleInLegend

Introduction

In this page you can find the example usage for org.jfree.chart.renderer.category BarRenderer3D setBaseSeriesVisibleInLegend.

Prototype

public void setBaseSeriesVisibleInLegend(boolean visible) 

Source Link

Document

Sets the base visibility in the legend and sends a RendererChangeEvent to all registered listeners.

Usage

From source file:org.gvsig.symbology.fmap.symbols.BarChart3DSymbol.java

protected Plot getMapPlot() {
    mapPlot = null; // <- delete this
    if (mapPlot == null) {
        CategoryPlot myMapPlot = new CategoryPlot();
        try {/* w  w w  .  j  av  a2 s  .co  m*/
            myMapPlot = (CategoryPlot) getOutlinePlot().clone();
        } catch (CloneNotSupportedException e) {
            Logger.getLogger(getClass()).error("Error cloning the BarChart3DSymbol's plot, check consistency");
            myMapPlot = new CategoryPlot();
        }

        myMapPlot.setBackgroundPaint(null);
        myMapPlot.setOutlinePaint(null);
        BarRenderer3D renderer = (BarRenderer3D) myMapPlot.getRenderer();
        renderer.setDrawBarOutline(drawBarOutline);
        // renderer.setBaseItemLabelsVisible(false, false);
        // renderer.setBaseSeriesVisible(false, false);
        renderer.setBaseSeriesVisibleInLegend(false);

        // myMapPlot.setBackgroundImage(null);

        mapPlot = myMapPlot;
    }
    return mapPlot;
}