Examples of addSubtitle()


Examples of com.dianping.cat.report.page.LineChart.addSubTitle()

  private LineChart getGraphItem(String title, String key, Date start, int size, Map<String, double[]> graphData) {
    LineChart item = new LineChart();
    item.setStart(start);
    item.setSize(size);
    item.setTitle(title);
    item.addSubTitle(title);
    item.setStep(TimeHelper.ONE_MINUTE);
    double[] activeThread = graphData.get(key);
    item.addValue(activeThread);
    return item;
  }
View Full Code Here

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

    JFreeChart pieChart = ChartFactory.createPieChart("Open Tickets by User", pieData, true, true, false);

    // add the "Total Open Tickets" sub-title
    TextTitle t1 = new TextTitle("Total Open Tickets: " + String.valueOf(totalTickets),
                                 new Font("SansSerif", Font.PLAIN, 11));
    pieChart.addSubtitle(t1);

    // set the chart visual options
    PiePlot plot = (PiePlot)pieChart.getPlot();
    plot.setForegroundAlpha(0.65f);
    plot.setNoDataMessage("There are no currently open tickets.");
View Full Code Here

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

    // set the sub-title
    TextTitle t1 = new TextTitle("Total Forecasted: " + totalForecastString + "           " +
                                 "Total Amount: " + totalActualString,
                                 new Font("SansSerif", Font.PLAIN, 11));
    pieChart.addSubtitle(t1);

    // set the chart visual options
    PiePlot plot = (PiePlot)pieChart.getPlot();
    plot.setForegroundAlpha(0.65f);
    plot.setNoDataMessage("No data to display");
View Full Code Here

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

    // set the sub-title
    TextTitle t1 = new TextTitle("Total Forecasted: " + totalForecastString + "           " +
                                 "Total Amount: " + totalActualString,
                                 new Font("SansSerif", Font.PLAIN, 11));
    barChart.addSubtitle(t1);

    // set the chart visual options
    CategoryPlot plot = barChart.getCategoryPlot();
   
    // set the X axis labels to be slanted
View Full Code Here

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

        subtitle.setFont(subtitleFont);
      }
     
      subtitle.setPosition(titleEdge);

      jfreechart.addSubtitle(subtitle);
    }

    // Apply all of the legend formatting options
    LegendTitle legend = jfreechart.getLegend();
View Full Code Here

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

                "Source: http://news.bbc.co.uk/1/hi/world/6063386.stm",
                new Font("Dialog", Font.PLAIN, 11));
        tt.setPosition(RectangleEdge.BOTTOM);
        tt.setHorizontalAlignment(HorizontalAlignment.RIGHT);
        tt.setMargin(0.0, 0.0, 4.0, 4.0);
        chart.addSubtitle(tt);

        TextTitle t = new TextTitle(
                "(*) Across 27,000 respondents in 25 countries",
                new Font("Dialog", Font.PLAIN, 11));
        t.setPosition(RectangleEdge.BOTTOM);
View Full Code Here

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

                "(*) Across 27,000 respondents in 25 countries",
                new Font("Dialog", Font.PLAIN, 11));
        t.setPosition(RectangleEdge.BOTTOM);
        t.setHorizontalAlignment(HorizontalAlignment.RIGHT);
        t.setMargin(4.0, 0.0, 2.0, 4.0);
        chart.addSubtitle(t);

        // get a reference to the plot for further customisation...
        CategoryPlot plot = (CategoryPlot) chart.getPlot();
        LegendItemCollection items = new LegendItemCollection();
        items.add(new LegendItem("Against all torture", null, null, null,
View Full Code Here

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

                new Rectangle2D.Double(-6.0, -3.0, 12.0, 6.0), Color.red));
        plot.setFixedLegendItems(items);
        plot.setInsets(new RectangleInsets(5, 5, 5, 20));
        LegendTitle legend = new LegendTitle(plot);
        legend.setPosition(RectangleEdge.BOTTOM);
        chart.addSubtitle(legend);
       
        plot.setBackgroundPaint(Color.lightGray);
        plot.setDomainGridlinePaint(Color.white);
        plot.setDomainGridlinesVisible(true);
        plot.setRangeGridlinePaint(Color.white);
View Full Code Here

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

    legend.setFrame(new BlockBorder(Color.red));
    legend.setPadding(new RectangleInsets(10, 10, 10, 10));
    legend.setStripWidth(10);
    legend.setPosition(RectangleEdge.BOTTOM);
    chart.removeLegend();
    chart.addSubtitle(legend);
    chart.setBackgroundPaint(new GradientPaint(0, 0, Color.WHITE, 0, 1000,
        Color.WHITE));
    ChartUtilities.applyCurrentTheme(chart);

    double rangeMargin = ((maxRange - minRange) / 100) * 25;
 
View Full Code Here

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

          }
        }

        if (tt == null) {
          tt = new TextTitle(title);
          localChart.addSubtitle(tt);
        }
      } else {
        tt = localChart.getTitle();
      }
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.