Examples of removeLegend()


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

    chart.setTitle(title);
    TextTitle subTitle =new TextTitle(subName,new Font("Arial", Font.PLAIN, 12 ),Color.decode("#000000"), RectangleEdge.TOP, HorizontalAlignment.CENTER, VerticalAlignment.TOP, RectangleInsets.ZERO_INSETS);
    chart.addSubtitle(subTitle);
    TextTitle subTitle2 =new TextTitle(subName,new Font("Arial", Font.PLAIN, 8 ),Color.decode("#FFFFFF"), RectangleEdge.TOP, HorizontalAlignment.CENTER, VerticalAlignment.TOP, RectangleInsets.ZERO_INSETS);
    chart.addSubtitle(subTitle2);
    chart.removeLegend();
   
    chart.setBackgroundPaint(Color.white);
    logger.debug("OUT");
    return chart;
  }
View Full Code Here

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

        chart.setTitle(title);
        if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      chart.addSubtitle(subTitle);
    }
        chart.removeLegend();
        chart.setBackgroundPaint(Color.white);
       
        //Sets legend labels
        SymbolAxis scaleAxis = new SymbolAxis(null,legendLabels);
        scaleAxis.setRange(0.5, 0.5+zvalues.length);
View Full Code Here

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

    chart.setTitle(title);
    TextTitle subTitle =new TextTitle(subName,new Font("Arial", Font.PLAIN, 12 ),Color.decode("#000000"), RectangleEdge.TOP, HorizontalAlignment.CENTER, VerticalAlignment.TOP, RectangleInsets.ZERO_INSETS);
    chart.addSubtitle(subTitle);
    TextTitle subTitle2 =new TextTitle(subName,new Font("Arial", Font.PLAIN, 8 ),Color.decode("#FFFFFF"), RectangleEdge.TOP, HorizontalAlignment.CENTER, VerticalAlignment.TOP, RectangleInsets.ZERO_INSETS);
    chart.addSubtitle(subTitle2);
    chart.removeLegend();
   
    chart.setBackgroundPaint(Color.white);
    logger.debug("OUT");
    return chart;
  }
View Full Code Here

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

    JFreeChart chart = new JFreeChart(name, plot);
    if(styleTitle!=null){
      TextTitle title =setStyleTitle(name, styleTitle);
      chart.setTitle(title);
    }
    chart.removeLegend();
    chart.setBackgroundPaint(Color.white);
    chart.addSubtitle(psl);


    logger.debug("OUT");
View Full Code Here

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

        // get the old legend frame
        BlockFrame tempFrame = confidenceChart.getLegend().getFrame();

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

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

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

      grafico.setValue( conta, valor );
    }
   
    JFreeChart chart = ChartFactory.createPieChart( "" , grafico );
   
    chart.removeLegend();
    chart.removeSubtitle( null );
   
    this.frame.setGrafico( chart );
  }
  private void confirmarAlterarLancamento() {
View Full Code Here

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

    plot.setForegroundAlpha(0.7f);
    plot.setDepthFactor(0.1);
    plot.setCircular(true);

    final JFreeChart chart = new JFreeChart(plot);
    chart.removeLegend();
    chart.setTitle("Top 10 Country Populations");

    return new StreamResponse() {
      public String getContentType() {
        return "image/png";
View Full Code Here

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

      xyplot.setAxisOffset(new RectangleInsets(5D, 5D, 5D, 5D));
      xyplot.setOutlinePaint(Color.blue);
      JFreeChart jfreechart = new JFreeChart(titleField+" "+String.format("%.0f",(fieldBinSize*currFrame*1000.0))+"-"+String.format("%.0f",(fieldBinSize*(currFrame+1)*1000.0))+" ms", xyplot);
      chartsave = jfreechart;
//    jfreechart.setTitle("Field Plot "+(fieldBinSize*currFrame*1000.0)+"-"+(fieldBinSize*(currFrame+1)*1000.0));
      jfreechart.removeLegend();

      NumberAxis numberaxis2 = new NumberAxis("Scale");
      numberaxis2.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
      numberaxis2.setRange(new Range(0,fieldMax));
      numberaxis2.setAxisLinePaint(Color.white);
View Full Code Here

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

                PlotOrientation.VERTICAL,
                true,
                false,
                false);

        chart.removeLegend();
        ChartUtils.decorateChart(chart);
        ChartUtils.scaleChart(chart, dSeries, false);
        String degreeImageFile = ChartUtils.renderChart(chart, "degree-ts.png");

        NumberFormat f = new DecimalFormat("#0.000000");
View Full Code Here

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

                PlotOrientation.VERTICAL,
                true,
                false,
                false);

        chart.removeLegend();
        ChartUtils.decorateChart(chart);
        ChartUtils.scaleChart(chart, dSeries, false);
        String imageFile = ChartUtils.renderChart(chart, "nb-edges-ts.png");

        NumberFormat f = new DecimalFormat("#0.000");
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.