Examples of addSubtitle()


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

        chart.setBackgroundPaint(Color.white);
        chart.setBorderVisible(true);
        chart.setBorderPaint(Color.BLACK);
        TextTitle subtitle = new TextTitle("Four datasets and four range axes.");
        chart.addSubtitle(subtitle);
        XYPlot plot = (XYPlot) chart.getPlot();
        plot.setOrientation(PlotOrientation.VERTICAL);
        plot.setBackgroundPaint(Color.lightGray);
        plot.setDomainGridlinePaint(Color.white);
        plot.setRangeGridlinePaint(Color.white);
View Full Code Here

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

    JFreeChart chart = new JFreeChart(plot);
    logger.debug("Chart created");
    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);
View Full Code Here

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

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

    TextTitle title = setStyleTitle(name, styleTitle);
    chart1.setTitle(title);
    logger.debug("Setted the title of the chart");
    if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      chart1.addSubtitle(subTitle);
      logger.debug("Setted the subtitle of the chart");
    }

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

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

    TextTitle title = setStyleTitle(name, styleTitle);
    chart.setTitle(title);
    logger.debug("Setted the title of the chart");
    if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      chart.addSubtitle(subTitle);
      logger.debug("Setted the subtitle of the chart");
    }
   
    chart.setBackgroundPaint(color);
    logger.debug("Setted background color of the chart");
View Full Code Here

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

    TextTitle title = setStyleTitle(name, styleTitle);
    chart.setTitle(title);
    logger.debug("Setted the title of the chart");
    if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      chart.addSubtitle(subTitle);
      logger.debug("Setted the subtitle of the chart");
    }
   
    plot.setInsets(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
    plot.setPadding(new RectangleInsets(10.0, 10.0, 10.0, 10.0));
View Full Code Here

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

    TextTitle title = setStyleTitle(name, styleTitle);
    chart.setTitle(title);
    logger.debug("Setted the title of the chart");
    if(subName!= null && !subName.equals("")){
      TextTitle subTitle =setStyleTitle(subName, styleSubTitle);
      chart.addSubtitle(subTitle);
      logger.debug("Setted the subtitle of the chart");
    }
    logger.debug("OUT");
    return chart;
  }
View Full Code Here

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

            try {
                subTitle = ReportKit.getLocationCaption(subTitle);
            } catch (SQLException e) {
                e.printStackTrace();
            }
            jfc.addSubtitle(new TextTitle(subTitle));
        }

        Plot plot = (jfc.getPlot());
        plot.setNoDataMessage(NO_DATA_FOUND);
View Full Code Here

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

    } else {
      // TODO implement the ability to have "ImageTitle"s for subtitles
      ChartDefinition chartDefinition = (ChartDefinition) dataset;
      Iterator iter = chartDefinition.getSubtitles().iterator();
      while ( iter.hasNext() ) {
        chart.addSubtitle( new TextTitle( iter.next().toString() ) );
      }
      chart.setBackgroundPaint( chartDefinition.getChartBackgroundPaint() );
      chart.setBackgroundImage( chartDefinition.getChartBackgroundImage() );
      chart.setBorderVisible( chartDefinition.isBorderVisible() );
      chart.setBorderPaint( chartDefinition.getBorderPaint() );
View Full Code Here

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

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

    if(legend==true) drawLegend(chart);
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.