/** * Handles a mouse wheel rotation (this method is intended for use by the * {@code MouseWheelHandler} class). * * @param rotateClicks the number of rotate clicks on the the mouse wheel. * * @since 1.0.14 */ public void handleMouseWheelRotation(int rotateClicks) { setStartAngle(this.startAngle + rotateClicks * 4.0); }
private void initPlot(PiePlot plot, int chartType) { switch (chartType) { case TYPE_FISHEYE_PIE: //orient chart so labels will align nicely even if small slices of pie are present plot.setStartAngle(180); plot.setDirection(Rotation.ANTICLOCKWISE); break; case TYPE_CRUCIBLE_PIE: plot.setStartAngle(160); plot.setDirection(Rotation.CLOCKWISE); plot.setExplodePercent("Unreviewed", .25); plot.setLabelGenerator(null); break; default: } }
((PiePlot) plot).setStartAngle(rotation);
/** * Creates a pie chart. * * @return A pie chart. */ private static JFreeChart createPieChart() { JFreeChart chart = ChartFactory.createPieChart(null, null, false, true, false); chart.setBackgroundPaint(Color.white); PiePlot plot = (PiePlot) chart.getPlot(); plot.setBackgroundPaint(null); plot.setInsets(RectangleInsets.ZERO_INSETS); plot.setInteriorGap(0.06); plot.setStartAngle(0.0); plot.setLabelGenerator(null); plot.setBaseSectionOutlinePaint(Color.white); plot.setBaseSectionOutlineStroke(new BasicStroke(1.2f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); plot.setOutlineVisible(false); plot.setLabelBackgroundPaint(null); plot.setLabelOutlinePaint(null); plot.setLabelShadowPaint(null); plot.setLabelPadding(RectangleInsets.ZERO_INSETS); plot.setLabelFont(new Font("Dialog", Font.PLAIN, 12)); plot.setLabelPaint(Color.gray); plot.setToolTipGenerator(new StandardPieToolTipGenerator("{2}")); return chart; }
plot.setIgnoreNullValues(true); plot.setIgnoreZeroValues(true); plot.setStartAngle(290); plot.setShadowXOffset(0.0); plot.setShadowYOffset(0.0);
plot.setIgnoreNullValues(true); plot.setIgnoreZeroValues(true); plot.setStartAngle(290); plot.setShadowXOffset(0.0); plot.setShadowYOffset(0.0);
pieplot.setStartAngle(startAngle);
PieDatasetChartDefinition pieDefinition = (PieDatasetChartDefinition) chartDefinition; pie.setInteriorGap( pieDefinition.getInteriorGap() ); pie.setStartAngle( pieDefinition.getStartAngle() ); pie.setLabelFont( pieDefinition.getLabelFont() ); if ( pieDefinition.getLabelPaint() != null ) {