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
This commit is contained in:
committed by
Tom Tromey
parent
d50ad6afbd
commit
a28853b01b
@@ -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
|
||||
|
||||
@@ -110,6 +110,11 @@ public class GC implements Cloneable
|
||||
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);
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user