From: <mu...@us...> - 2007-10-23 15:30:24
|
Revision: 401 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=401&view=rev Author: mungady Date: 2007-10-23 08:30:22 -0700 (Tue, 23 Oct 2007) Log Message: ----------- 2007-10-23 David Gilbert <dav...@ob...> * swt/org/jfree/experimental/swt/SWTGraphics2D.java (drawOval): Implemented, (fillOval): Likewise. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/ChangeLog branches/jfreechart-1.0.x-branch/swt/org/jfree/experimental/swt/SWTGraphics2D.java Modified: branches/jfreechart-1.0.x-branch/ChangeLog =================================================================== --- branches/jfreechart-1.0.x-branch/ChangeLog 2007-10-23 15:15:36 UTC (rev 400) +++ branches/jfreechart-1.0.x-branch/ChangeLog 2007-10-23 15:30:22 UTC (rev 401) @@ -1,6 +1,12 @@ 2007-10-23 David Gilbert <dav...@ob...> * swt/org/jfree/experimental/swt/SWTGraphics2D.java + (drawOval): Implemented, + (fillOval): Likewise. + +2007-10-23 David Gilbert <dav...@ob...> + + * swt/org/jfree/experimental/swt/SWTGraphics2D.java (drawPolyline): Implemented. 2007-10-23 David Gilbert <dav...@ob...> Modified: branches/jfreechart-1.0.x-branch/swt/org/jfree/experimental/swt/SWTGraphics2D.java =================================================================== --- branches/jfreechart-1.0.x-branch/swt/org/jfree/experimental/swt/SWTGraphics2D.java 2007-10-23 15:15:36 UTC (rev 400) +++ branches/jfreechart-1.0.x-branch/swt/org/jfree/experimental/swt/SWTGraphics2D.java 2007-10-23 15:30:22 UTC (rev 401) @@ -47,7 +47,8 @@ * 22-Oct-2007 : Implemented some AlphaComposite support (HP); * 23-Oct-2007 : Added mechanism for storing RenderingHints (which are * still ignored at this point) (DG); - * 23-Oct-2007 : Implemented drawPolygon() and drawPolyline() (DG); + * 23-Oct-2007 : Implemented drawPolygon(), drawPolyline(), drawOval() and + * fillOval() (DG); * */ @@ -641,12 +642,19 @@ } } - /* (non-Javadoc) - * @see java.awt.Graphics#drawOval(int, int, int, int) + /** + * Draws an oval that fits within the specified rectangular region. + * + * @param x the x-coordinate. + * @param y the y-coordinate. + * @param width the frame width. + * @param height the frame height. + * + * @see #fillOval(int, int, int, int) + * @see #draw(Shape) */ public void drawOval(int x, int y, int width, int height) { - // TODO Auto-generated method stub - + this.gc.drawOval(x, y, width - 1, height - 1); } /* (non-Javadoc) @@ -721,11 +729,21 @@ // TODO Auto-generated method stub } - /* (non-Javadoc) - * @see java.awt.Graphics#fillOval(int, int, int, int) + /** + * Fills an oval that fits within the specified rectangular region. + * + * @param x the x-coordinate. + * @param y the y-coordinate. + * @param width the frame width. + * @param height the frame height. + * + * @see #drawOval(int, int, int, int) + * @see #fill(Shape) */ public void fillOval(int x, int y, int width, int height) { - // TODO Auto-generated method stub + switchColors(); + this.gc.fillOval(x, y, width - 1, height - 1); + switchColors(); } /* (non-Javadoc) @@ -811,7 +829,6 @@ */ public void drawString(AttributedCharacterIterator iterator, int x, int y) { // TODO Auto-generated method stub - } /* (non-Javadoc) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |