source: trunk/src/org/expeditee/items/widgets/charts/Pie3D.java@ 284

Last change on this file since 284 was 213, checked in by ra33, 16 years ago

Added Charts

File size: 735 bytes
Line 
1package org.expeditee.items.widgets.charts;
2
3import org.expeditee.items.Text;
4import org.jfree.chart.ChartFactory;
5import org.jfree.chart.JFreeChart;
6import org.jfree.chart.plot.PiePlot3D;
7import org.jfree.util.Rotation;
8
9public class Pie3D extends AbstractPie {
10
11 public Pie3D(Text source, String[] args) {
12 super(source, args);
13 }
14
15 @Override
16 protected JFreeChart createNewChart() {
17 JFreeChart chart = ChartFactory.createPieChart3D(DEFAULT_TITLE, getChartData(), true, // legend?
18 true, // tooltips?
19 false // URLs?
20 );
21 final PiePlot3D plot = (PiePlot3D) chart.getPlot();
22 plot.setStartAngle(290);
23 plot.setDirection(Rotation.CLOCKWISE);
24 plot.setForegroundAlpha(0.5f);
25 return chart;
26 }
27}
Note: See TracBrowser for help on using the repository browser.