List of usage examples for org.jfree.chart.title TextTitle DEFAULT_FONT
Font DEFAULT_FONT
To view the source code for org.jfree.chart.title TextTitle DEFAULT_FONT.
Click Source Link
From source file:org.jfree.chart.demo.SpiderWebChartDemo1.java
private static JFreeChart createChart(CategoryDataset categorydataset) { SpiderWebPlot plot = new SpiderWebPlot(categorydataset); plot.setStartAngle(54D);//w ww. jav a 2 s .co m plot.setInteriorGap(0.40000000000000002D); plot.setToolTipGenerator(new StandardCategoryToolTipGenerator()); JFreeChart chart = new JFreeChart("Spider Web Chart Demo 1", TextTitle.DEFAULT_FONT, plot, false); LegendTitle legendtitle = new LegendTitle(plot); legendtitle.setPosition(RectangleEdge.BOTTOM); chart.addSubtitle(legendtitle); return chart; }
From source file:org.sonar.server.charts.deprecated.PieChart.java
public PieChart(Map<String, String> params) { super(params); jfreechart = new JFreeChart(null, TextTitle.DEFAULT_FONT, new PiePlot(), false); }
From source file:org.sonar.server.charts.deprecated.SparkLinesChart.java
public SparkLinesChart(Map<String, String> params) { super(params); jfreechart = new JFreeChart(null, TextTitle.DEFAULT_FONT, new XYPlot(), false); }
From source file:org.sonar.server.charts.deprecated.BarChart.java
public BarChart(Map<String, String> params) { super(params); jfreechart = new JFreeChart(null, TextTitle.DEFAULT_FONT, new CategoryPlot(), false); }
From source file:org.sonar.api.charts.AbstractChart.java
/** * Generates a JFreeChart chart using a set of parameters * //from ww w . j a v a 2 s .c o m * @param params the chart parameters * @return the generated chart */ public BufferedImage generateImage(ChartParameters params) { JFreeChart chart = new JFreeChart(null, TextTitle.DEFAULT_FONT, getPlot(params), hasLegend()); improveChart(chart, params); return chart.createBufferedImage(params.getWidth(), params.getHeight()); }
From source file:moviedatas.View.SpiderWebChart.java
/** * Creates a sample chart./*from w w w .j a v a 2 s . co m*/ * * @param dataset the dataset. * * @return The chart. */ private static JFreeChart createChart(CategoryDataset dataset) { SpiderWebPlot plot = new SpiderWebPlot(dataset); plot.setStartAngle(54); plot.setInteriorGap(0.40); //plot.setToolTipGenerator(new StandardCategoryToolTipGenerator()); JFreeChart chart = new JFreeChart("", TextTitle.DEFAULT_FONT, plot, false); LegendTitle legend = new LegendTitle(plot); legend.setPosition(RectangleEdge.BOTTOM); chart.addSubtitle(legend); //ChartUtilities.applyCurrentTheme(chart); return chart; }
From source file:sernet.gs.ui.rcp.main.bsi.views.chart.LebenszyklusBarChart.java
protected JFreeChart createSpiderChart(Object dataset) { final int startAngle = 54; final double interiorGap = 0.4d; SpiderWebPlot plot = new SpiderWebPlot((CategoryDataset) dataset); plot.setStartAngle(startAngle);/* w w w. j a v a2 s.com*/ plot.setInteriorGap(interiorGap); plot.setToolTipGenerator(new StandardCategoryToolTipGenerator()); JFreeChart chart = new JFreeChart(Messages.LebenszyklusBarChart_1, TextTitle.DEFAULT_FONT, plot, false); LegendTitle legend = new LegendTitle(plot); legend.setPosition(RectangleEdge.BOTTOM); chart.addSubtitle(legend); return chart; }
From source file:sernet.gs.ui.rcp.main.bsi.views.chart.MaturitySpiderChart.java
protected JFreeChart createSpiderChart(Object dataset) { SpiderWebPlot plot = new SpiderWebPlot((CategoryDataset) dataset); plot.setToolTipGenerator(new StandardCategoryToolTipGenerator()); plot.setSeriesPaint(0, new Color(0.0f, 1f, 0f, 1f)); // green plot.setSeriesPaint(1, new Color(1f, 1f, 0f, 1f)); // yellow plot.setSeriesPaint(2, new Color(1f, 0f, 0f, 1f)); // red plot.setSeriesPaint(3, new Color(0f, 0f, 0f, 1f)); // grey plot.setWebFilled(true);/*from www.j a v a 2 s . c om*/ JFreeChart chart = new JFreeChart(Messages.MaturitySpiderChart_0, TextTitle.DEFAULT_FONT, plot, false); LegendTitle legend = new LegendTitle(plot); legend.setPosition(RectangleEdge.BOTTOM); chart.addSubtitle(legend); return chart; }
From source file:sernet.gs.ui.rcp.main.bsi.views.chart.ISRSpiderChart.java
protected JFreeChart createSpiderChart(Object dataset) { SpiderWebPlot plot = new SpiderWebPlot((CategoryDataset) dataset); plot.setToolTipGenerator(new StandardCategoryToolTipGenerator()); plot.setSeriesPaint(0, new Color(0.0f, 1f, 0f, 1f)); // green plot.setSeriesPaint(1, new Color(1f, 1f, 0f, 1f)); // yellow plot.setSeriesPaint(2, new Color(1f, 0f, 0f, 1f)); // red plot.setSeriesPaint(3, new Color(0f, 0f, 0f, 1f)); // grey plot.setWebFilled(true);//from www .java 2 s . co m JFreeChart chart = new JFreeChart(Messages.ISRSpiderChart_0, TextTitle.DEFAULT_FONT, plot, false); LegendTitle legend = new LegendTitle(plot); legend.setPosition(RectangleEdge.BOTTOM); chart.addSubtitle(legend); return chart; }
From source file:sernet.gs.ui.rcp.main.bsi.views.chart.SchichtenBarChart.java
protected JFreeChart createSpiderChart(Object dataset) { SpiderWebPlot plot = new SpiderWebPlot((CategoryDataset) dataset); plot.setToolTipGenerator(new StandardCategoryToolTipGenerator()); JFreeChart chart = new JFreeChart(Messages.SchichtenBarChart_3, TextTitle.DEFAULT_FONT, plot, false); LegendTitle legend = new LegendTitle(plot); legend.setPosition(RectangleEdge.BOTTOM); chart.addSubtitle(legend);// w ww .jav a 2 s . co m return chart; }