Examples of TextTitle


Examples of org.jfree.chart.title.TextTitle

        bounds, retriever);

    // Add sub-title, if any.
    if (subTitle != null && !"".equals(subTitle.trim())) {
      List<Title> subTitles = chart.getSubtitles();
      subTitles.add(new TextTitle(subTitle));
      chart.setSubtitles(subTitles);
    }

    // Format for observation tool-tip.
    xyMsgFormat = "%s (%s), %s";
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

    this.chartPanel.setPreferredSize(bounds);

    this.chart = chartPanel.getChart();

    if (subTitle != null && "".equals(subTitle.trim())) {
      this.chart.addSubtitle(new TextTitle(subTitle));
    }

    this.renderer = new VStarPlotDataRenderer();
    this.renderer.setDrawYError(this.showErrorBars);
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

      else if ("right".equals(alignParam))
        align = HorizontalAlignment.RIGHT;
    }
*/
    if (title != null || "title".equals(type)) {
      TextTitle tt = null;
      if ("subtitle".equals(type)) {
        // search for subtitle
        List subTitles = localChart.getSubtitles();
        Iterator iter = subTitles.iterator();
        while (iter.hasNext()) {
          Object o = iter.next();
          if (o instanceof TextTitle) {
            tt = (TextTitle) o;
            break;
          }
        }

        if (tt == null) {
          tt = new TextTitle(title);
          localChart.addSubtitle(tt);
        }
      } else {
        tt = localChart.getTitle();
      }

      Font font = new Font(fontName,
                (isBold ? Font.BOLD : 0) + (isItalic ? Font.ITALIC : 0),
                fontSize);
      tt.setFont(font);
      if (paint != null)
        tt.setPaint(paint);
      if (backgroundPaint != null)
        tt.setBackgroundPaint(backgroundPaint);
    }
  }
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

        JFreeChart chart = new JFreeChart(plot);
        chart.removeLegend();

        if (width < SMALL_PIC || height < SMALL_PIC) {
        } else {
            chart.setTitle(new TextTitle(this.toString(), new Font("Arial", 0, 12)));
        }

        return chart.createBufferedImage(width, height);
    }
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

        JFreeChart chart = new JFreeChart(plot);
        chart.removeLegend();

        if (width < SMALL_PIC || height < SMALL_PIC) {
        } else {
            chart.setTitle(new TextTitle(this.toString(), new Font("Arial", 0, 12)));
        }

        return chart.createBufferedImage(width, height);
    }
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

            "Military Spending 2008 - Top 10 Countries",
            dataset, false, // legend?
            true, // tooltips?
            false // URLs?
            );
        chart.addSubtitle(new TextTitle("http://en.wikipedia.org/wiki/List_of_countries_by_military_expenditures"));
        PiePlot plot = (PiePlot) chart.getPlot();
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0} ({2})"));
        plot.setBackgroundPaint(Color.WHITE);
        plot.setOutlinePaint(null);
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

      }
      // 设置副标题
      if (this.subTitle != null && this.subTitle.length() > 0
          && chart != null) {

        chart.addSubtitle(new TextTitle(this.subTitle));

      }

      SetChartExtProperty(chart);
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

                PlotOrientation.VERTICAL,
                true,
                true,
                false);
        if (!title.equals("")) {
            TextTitle source = new TextTitle(fileName);
            source.setFont(new Font("SanSerif", Font.PLAIN, 12));
            source.setPosition(RectangleEdge.TOP);
            chart.addSubtitle(source);
        }
        chart.getTitle().setFont(new Font("Tahoma", Font.PLAIN, 13));
        final XYPlot plot = chart.getXYPlot();
        if (shapeRenderer) {
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

    case "Pasta Dilimi":
      cp = grafikCiz.pastaDilimi(deger, baremAdi, degerIsimleri);
      break;
    }
    TextTitle txtTitle = new TextTitle(chartTitle, new Font("Tahoma",
        Font.BOLD, 18));
    cp.getChart().setTitle(txtTitle);
    chartEklenecekPanel.add(cp);
    chartEklenecekPanel.updateUI();
    cp.setVisible(true);
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

        PlotOrientation.VERTICAL, true, // include legend
        true, // tooltips
        false // urls
        );
   
    chart.addSubtitle(new TextTitle("Only values > 0 are taken into account"));
    //configure domain axis (interval numbers and simulation steps
    final XYPlot plot = chart.getXYPlot();
    NumberAxis stepAxis = (NumberAxis) plot.getDomainAxis();
    stepAxis.setAutoTickUnitSelection(false);
    stepAxis.setTickUnit(new NumberTickUnit(
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.