Hi,
Fixing the default arc type for CairoGraphics2D.fillArc - we should be
using the PIE type, not OPEN, for fills. The applet at
http://www.multicians.org/thvv/pie-chart.html (as well as a simple
visual testcase) back this change.
Cheers,
Francis
2006-10-31 Francis Kung <[EMAIL PROTECTED]>
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(fillArc): Corrected arc type to Arc2D.PIE.
Index: gnu/java/awt/peer/gtk/CairoGraphics2D.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- gnu/java/awt/peer/gtk/CairoGraphics2D.java 23 Oct 2006 19:55:38 -0000 1.47
+++ gnu/java/awt/peer/gtk/CairoGraphics2D.java 31 Oct 2006 20:23:23 -0000 1.48
@@ -1154,7 +1154,7 @@
{
fill(new Arc2D.Double((double) x, (double) y, (double) width,
(double) height, (double) startAngle,
- (double) arcAngle, Arc2D.OPEN));
+ (double) arcAngle, Arc2D.PIE));
}
public void fillRect(int x, int y, int width, int height)