Package org.jfree.chart

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


      chart.removeLegend();
      // chart.addSubtitle(new TextTitle(""));
      LegendTitle legend = new LegendTitle(plot);
      legend.setFrame(new BlockBorder());
      legend.setPosition(RectangleEdge.BOTTOM);
      chart.addSubtitle(legend);
     
      // generate jpeg
           
      ByteArrayOutputStream bos = new ByteArrayOutputStream();
      ChartUtilities.writeChartAsJPEG(bos, chart, 2400, 400);
View Full Code Here


    plot.setGap(0);
    plot.add(gcContentChart.getChart().getXYPlot(),1);
        plot.setOrientation(PlotOrientation.VERTICAL);
        JFreeChart combinedChart = new JFreeChart("Coverage across reference",plot);
    combinedChart.setPadding(new RectangleInsets(30,20,30,20));
    combinedChart.addSubtitle(coverageChart.getChart().getSubtitle(0));
        charts.add(new QChart(bamStats.getName() + "_coverage_across_reference.png", combinedChart, coverageChart) );

        if (bamStats.getNumberOfMappedBases() == 0) {
            // It doesn't make sense to draw any other graphs
            // TODO: show user a message?
View Full Code Here

        assertTrue(chart1.equals(chart2));
       
        // subtitles
        chart1.addSubtitle(new TextTitle("Subtitle"));
        assertFalse(chart1.equals(chart2));
        chart2.addSubtitle(new TextTitle("Subtitle"));
        assertTrue(chart1.equals(chart2));
       
        // plot
        chart1 = new JFreeChart("Title",
                new Font("SansSerif", Font.PLAIN, 12), new RingPlot(), false);
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.