Revision: 803 Author: heuermh Date: Thu Oct 22 20:08:24 2009 Log: fixing javadoc warnings in swt http://code.google.com/p/piccolo2d/source/detail?r=803
Modified: /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTGraphics2D.java ======================================= --- /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTGraphics2D.java Mon Oct 19 23:13:22 2009 +++ /piccolo2d.java/trunk/swt/src/main/java/edu/umd/cs/piccolox/swt/SWTGraphics2D.java Thu Oct 22 20:08:24 2009 @@ -345,13 +345,18 @@ /** {...@inheritdoc} */ public void setFont(final Font font) { + // TODO: prevent NPE final String fontString = "name=" + font.getFamily() + ";bold=" + font.isBold() + ";italic=" + font.isItalic() + ";size=" + font.getSize(); curFont = getFont(fontString); } - /** {...@inheritdoc} */ + /** + * Set the font for this SWTGraphics2D to <code>font</code>. + * + * @param font font for this SWTGraphics2D + */ public void setFont(final org.eclipse.swt.graphics.Font font) { curFont = font; } @@ -599,7 +604,11 @@ gc.drawPolyline(ptArray); } - /** {...@inheritdoc} */ + /** + * Draw a polyline from the specified double array of points. + * + * @param pts double array of points + */ public void drawPolyline(final double[] pts) { final int[] intPts = SWTShapeManager.transform(pts, transform); gc.drawPolyline(intPts); @@ -618,7 +627,11 @@ gc.drawPolygon(ptArray); } - /** {...@inheritdoc} */ + /** + * Fill a polyline from the specified double array of points. + * + * @param pts double array of points + */ public void fillPolygon(final double[] pts) { final int[] intPts = SWTShapeManager.transform(pts, transform); gc.fillPolygon(intPts); --~--~---------~--~----~------------~-------~--~----~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~----------~----~----~----~------~----~------~--~---