Package org.jfree.chart

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


    TextTitle title=new TextTitle(name,new Font("Arial", Font.BOLD, 16 ),Color.decode("#990200"), RectangleEdge.TOP, HorizontalAlignment.CENTER, VerticalAlignment.TOP, RectangleInsets.ZERO_INSETS);
    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


    TextTitle title =setStyleTitle(name, styleTitle);
    sparkLineGraph.setTitle(title);
    if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      sparkLineGraph.addSubtitle(subTitle);
    }

    sparkLineGraph.setBorderVisible(false);
    sparkLineGraph.setBorderPaint(Color.BLACK);
    XYPlot plot = sparkLineGraph.getXYPlot();
View Full Code Here

    TextTitle title =setStyleTitle(name, styleTitle);
    chart.setTitle(title);
    chart.setBackgroundPaint(Color.white);
    if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      chart.addSubtitle(subTitle);
    }
   
    XYPlot plot = (XYPlot) chart.getPlot();
    plot.setForegroundAlpha(0.65f);
   
View Full Code Here

      TextTitle title =setStyleTitle(name, styleTitle);
      chart.setTitle(title);
    }
    chart.removeLegend();
    chart.setBackgroundPaint(Color.white);
    chart.addSubtitle(psl);


    logger.debug("OUT");

    return chart;
View Full Code Here

    TextTitle title =setStyleTitle(name, styleTitle);
    chart.setTitle(title);
    chart.setBackgroundPaint(Color.white);
    if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      chart.addSubtitle(subTitle);
    }
   
    XYPlot plot = (XYPlot) chart.getPlot();
    plot.setForegroundAlpha(0.65f);
View Full Code Here

    TextTitle title =setStyleTitle(name, styleTitle);
    chart.setTitle(title);
    if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      chart.addSubtitle(subTitle);
    }



    return chart;
View Full Code Here

    TextTitle title =setStyleTitle(name, styleTitle);
    chart.setTitle(title);
    if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      chart.addSubtitle(subTitle);
    }


    return chart;
View Full Code Here

   );

      String filenameBase = new File(filename).getName();

      String subTitle1 = filenameBase;
      chart.addSubtitle(new TextTitle(subTitle1));

      DecimalFormat freqFormatter = new DecimalFormat("0000.000 MHz  ");
      String freqString = freqFormatter.format(nssBaseline.getCenterFreqMhz());

      DecimalFormat bandwidthFormatter = new DecimalFormat("0.00 MHz  ");
View Full Code Here

      DecimalFormat bandwidthFormatter = new DecimalFormat("0.00 MHz  ");
      String bandwidthString = bandwidthFormatter.format(nssBaseline.getBandwidthMhz());

      String subTitle2 = "Center Freq: " + freqString
         + "     Bandwidth: " + bandwidthString;
      chart.addSubtitle(new TextTitle(subTitle2));


      // move the data off of the axes
      // by extending the minimum axis value
View Full Code Here

      }
      else
      {
         subTitle1 += inFilenameBase;        
      }
      chart.addSubtitle(new TextTitle(subTitle1));

      String subTitle2 = "Center Freq: " + freqString
         + "Bandwidth: " + bandwidthString;
      chart.addSubtitle(new TextTitle(subTitle2));
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.