+2003-06-11 Scott Gilbertson <scottg@mantatest.com>
+
+ * gnu/awt/j2d/IntegerGraphicsState.java (drawOval): implemented.
+ (fillOval): implemented
+ * gnu/awt/xlib/XGraphics.java (drawArc): implemented.
+ (fillArc): implemented.
+ * gnu/gcj/xlib/GC.java (drawArc): added native method.
+ (fillArc): added native method.
+ * gnu/gcj/xlib/natGC.cc (drawArc): added native method.
+ (fillArc): added native method.
+
2003-06-11 Michael Koch <konqueror@gmx.de>
* java/awt/im/InputSubset.java:
public void drawOval(int x, int y,
int width, int height)
{
- throw new UnsupportedOperationException("not implemented yet");
+ drawArc (x, y, width, height, 0, 360);
}
public void fillOval(int x, int y,
int width, int height)
{
- throw new UnsupportedOperationException("not implemented yet");
+ fillArc (x, y, width, height, 0, 360);
}
public void drawArc(int x, int y,
public void drawArc(int x, int y, int width, int height, int
startAngle, int arcAngle)
{
- throw new UnsupportedOperationException("not implemented");
+ context.drawArc (x, y, width, height, startAngle, arcAngle);
}
public void fillArc(int x, int y, int width, int height, int
startAngle, int arcAngle)
{
- throw new UnsupportedOperationException("not implemented");
+ context.fillArc (x, y, width, height, startAngle, arcAngle);
}
public void drawPolyline(int[] xPoints, int[] yPoints, int
public native void fillRectangle(int x, int y, int w, int h);
public native void fillPolygon(int[] xPoints, int[] yPoints, int nPoints,
int translateX, int translateY);
+
+ public native void drawArc(int x, int y, int w, int h,
+ int startAngle, int arcAngle);
+ public native void fillArc(int x, int y, int w, int h,
+ int startAngle, int arcAngle);
/**
*
// no fast fail
}
+void gnu::gcj::xlib::GC::drawArc(jint x, jint y, jint w, jint h,jint startAngle, jint arcAngle)
+{
+ Display* display = target->getDisplay();
+ ::Display* dpy = (::Display*) (display->display);
+ ::Drawable drawableXID = target->getXID();
+ ::GC gc = (::GC) structure;
+ XDrawArc(dpy, drawableXID, gc, x, y, w, h, startAngle * 64, arcAngle * 64);
+}
+
+void gnu::gcj::xlib::GC::fillArc(jint x, jint y, jint w, jint h,jint startAngle, jint arcAngle)
+{
+ Display* display = target->getDisplay();
+ ::Display* dpy = (::Display*) (display->display);
+ ::Drawable drawableXID = target->getXID();
+ ::GC gc = (::GC) structure;
+ XFillArc(dpy, drawableXID, gc, x, y, w, h, startAngle * 64, arcAngle * 64);
+}
+
void gnu::gcj::xlib::GC::fillPolygon(jintArray xPoints, jintArray yPoints,
jint nPoints,
jint translateX, jint translateY)