List of usage examples for org.jfree.chart.ui RectangleInsets ZERO_INSETS
RectangleInsets ZERO_INSETS
To view the source code for org.jfree.chart.ui RectangleInsets ZERO_INSETS.
Click Source Link
From source file:org.jfree.graphics2d.demo.SVGChartWithAnnotationsDemo1.java
private static JFreeChart createPieChart() { DefaultPieDataset dataset = new DefaultPieDataset(); dataset.setValue("Engineering", 43.2); dataset.setValue("Research", 13.2); dataset.setValue("Advertising", 20.9); PiePlot plot = new PiePlot(dataset); plot.setBackgroundPainter(null);/*w ww.j av a 2s . c o m*/ plot.setBorderPainter(null); plot.setBaseSectionOutlinePaint(Color.white); plot.setBaseSectionOutlineStroke(new BasicStroke(2.0f)); plot.setLabelFont(new Font("Dialog", Font.PLAIN, 18)); plot.setMaximumLabelWidth(0.25); JFreeChart chart = new JFreeChart(plot); chart.setBackgroundPainter(null); chart.removeLegend(); chart.setPadding(RectangleInsets.ZERO_INSETS); return chart; }