Examples of TextTitle


Examples of org.jfree.chart.title.TextTitle

        JFreeChart chart =  new JFreeChart(title,
                JFreeChart.DEFAULT_TITLE_FONT, plot, legend);

        if (subTitle) {
            TextTitle subtitle = null;
            subtitle = new TextTitle("Bright " + (greenForIncrease ? "red"
                    : "green") + "=change >=-" + percentDiffForMaxScale
                    + "%, Bright " + (!greenForIncrease ? "red" : "green")
                    + "=change >=+" + percentDiffForMaxScale + "%",
                    new Font("SansSerif", Font.PLAIN, 10));
            chart.addSubtitle(subtitle);
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

        JFreeChart chart =  new JFreeChart(title,
                JFreeChart.DEFAULT_TITLE_FONT, plot, legend);

        if (subTitle) {
            TextTitle subtitle = null;
            subtitle = new TextTitle("Bright " + (greenForIncrease ? "red"
                    : "green") + "=change >=-" + percentDiffForMaxScale
                    + "%, Bright " + (!greenForIncrease ? "red" : "green")
                    + "=change >=+" + percentDiffForMaxScale + "%",
                    new Font("SansSerif", Font.PLAIN, 10));
            chart.addSubtitle(subtitle);
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

        plot.setDataExtractOrder(order);
        plot.setBackgroundPaint(null);
        plot.setOutlineStroke(null);

        JFreeChart pieChart = new JFreeChart(new PiePlot3D(null));
        TextTitle seriesTitle = new TextTitle("Series Title",
                new Font("SansSerif", Font.BOLD, 12));
        seriesTitle.setPosition(RectangleEdge.BOTTOM);
        pieChart.setTitle(seriesTitle);
        pieChart.removeLegend();
        pieChart.setBackgroundPaint(null);
        plot.setPieChart(pieChart);
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

     * Adds a subtitle to the chart.
     *
     * @param subtitle  the subtitle.
     */
    public void addSubtitle(String subtitle) {
        this.chart.addSubtitle(new TextTitle(subtitle));
    }
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

     *
     * @param subtitle  the subtitle.
     * @param font  the subtitle font.
     */
    public void addSubtitle(String subtitle, Font font) {
        this.chart.addSubtitle(new TextTitle(subtitle, font));
    }
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

        ChartFactory.createXYLineChart(title, model.getDomainType()
            .getDescription(), model.getRangeType()
            .getDescription(), model, PlotOrientation.VERTICAL,
            true, true, true), model, permitLogarithmic);

    chartPanel.getChart().addSubtitle(new TextTitle(subtitle));

    return chartPanel;
  }
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

        ChartFactory.createScatterPlot(title, model.getDomainType()
            .getDescription(), model.getRangeType()
            .getDescription(), model, PlotOrientation.VERTICAL,
            true, true, true), model, permitLogarithmic);

    chartPanel.getChart().addSubtitle(new TextTitle(subtitle));

    return chartPanel;
  }
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

    chart2.getXYPlot().setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);

    PeriodAnalysis2DChartPane chartPanel = new PeriodAnalysis2DChartPane(
        chart2, model, permitLogarithmic);

    chartPanel.getChart().addSubtitle(new TextTitle(subtitle));

    return chartPanel;
  }
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

        ChartFactory.createXYLineChart(title, model.getDomainType()
            .getDescription(), model.getRangeType()
            .getDescription(), model, PlotOrientation.VERTICAL,
            true, true, true), model, permitLogarithmic);

    chartPanel.getChart().addSubtitle(new TextTitle(subtitle));

    return chartPanel;
  }
View Full Code Here

Examples of org.jfree.chart.title.TextTitle

        else {
            chart.setTitle(Translator.translate(title));
            String titleFontSize = getSetting("titleFontSize");
            if (titleFontSize != null) try {
                float fontSize = Float.parseFloat(titleFontSize);
                TextTitle t = chart.getTitle();
                t.setFont(t.getFont().deriveFont(fontSize));
            } catch (Exception tfe) {}
        }

        if (chromeless || parameters.get("hideLegend") != null)
            chart.removeLegend();
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.