Commit a28853b0 by Scott Gilbertson Committed by Tom Tromey

IntegerGraphicsState.java (drawOval): implemented.

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.

From-SVN: r67810
parent d50ad6af
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:
......
......@@ -187,13 +187,13 @@ public class IntegerGraphicsState extends AbstractGraphicsState
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,
......
......@@ -156,13 +156,13 @@ public class XGraphics implements Cloneable, DirectRasterGraphics
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
......
......@@ -111,6 +111,11 @@ public class GC implements Cloneable
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);
/**
*
* Clear area using the background pixel or pixmap of the drawable.
......
......@@ -147,6 +147,24 @@ void gnu::gcj::xlib::GC::fillRectangle(jint x, jint y, jint w, jint h)
// 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment