Package org.jfree.chart

Examples of org.jfree.chart.JFreeChart.addLegend()


        else if (width > short_window_widthstyle = MED;
        else                                  style = SHORT;

        JFreeChart chart = getChart();
        chart.removeLegend();
        if (style == FULL) chart.addLegend(legend);
       
        adjustAxis(chart.getXYPlot().getRangeAxis(),
                   style != FULL,
                   yLabel);
    
View Full Code Here


        plot.setRangeAxis(1, _valueAxis2);
        plot.mapDatasetToRangeAxis(1, 1);

        JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, false);
        if (_showLegend) {
            chart.addLegend(new LegendTitle(plot)); // TODO test change
        }

        return chart;
    }
View Full Code Here

        plot.setRangeAxisLocation(AxisLocation.BOTTOM_OR_LEFT);
        plot.setOrientation(PlotOrientation.HORIZONTAL);
        JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, false);
        if (_showLegend) {
            chart.addLegend(new LegendTitle(plot)); // TODO test change
        }

        return chart;
    }
View Full Code Here

        // remove the old legend
        confidenceChart.removeLegend();

        // add the new legend
        confidenceChart.addLegend(new LegendTitle(source));
        confidenceChart.getLegend().setFrame(tempFrame);
        confidenceChart.getLegend().setPosition(RectangleEdge.BOTTOM);

        // set background color
        confidenceChart.getPlot().setBackgroundPaint(Color.WHITE);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.