# HG changeset patch # User Anton Epple # Date 1392190411 -3600 # Node ID 8cb57e6c7012db1a7bbc63634a35f40d5f866be7 # Parent 6e51eb226f449c71db441c60a43a5b947732025c More JavaDoc improvements. diff -r 6e51eb226f44 -r 8cb57e6c7012 javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java Wed Feb 12 08:21:34 2014 +0100 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java Wed Feb 12 08:33:31 2014 +0100 @@ -33,7 +33,8 @@ public final class GraphicsContext { public static void getAccssr() { - // do nothing + // do nothing we need this in order to have the class loaded and static + // block executed for CnvsAccssr. } GraphicsEnvironment graphicsEnvironmentImpl; @@ -441,43 +442,90 @@ // return graphicsEnvironmentImpl.getShadowOffsetY(); // } - + /** + * Gets the current stroke line cap attribute. + * + * @return a value of butt, round, or square. + */ public String getLineCap() { return graphicsEnvironmentImpl.getLineCap(); } - + + /** + * Sets the current stroke line cap attribute. + * + * @param style a value of miter, bevel, or round. + */ public void setLineCap(String style) { graphicsEnvironmentImpl.setLineCap(style); } + /** + * Gets the current stroke line join attribute. + * + * @return a value of miter, bevel, or round. + */ public String getLineJoin() { return graphicsEnvironmentImpl.getLineJoin(); } + /** + * Sets the current stroke line join attribute. + * + * @param style a value of miter, bevel, or + * round. + */ public void setLineJoin(String style) { graphicsEnvironmentImpl.setLineJoin(style); } + /** + * Gets the current line width attribute. + * + * @return value between 0 and infinity, with any other value being ignored + * and leaving the value unchanged. + * + */ public double getLineWidth() { return graphicsEnvironmentImpl.getLineWidth(); } + /** + * Sets the current line width attribute. + * + * @param lw value between 0 and infinity, with any other value being + * ignored and leaving the value unchanged. + * + */ public void setLineWidth(double width) { graphicsEnvironmentImpl.setLineWidth(width); } + /** + * Gets the current miter limit attribute. + * + * @return limit value between 0 and positive infinity with any other value + * being ignored and leaving the value unchanged. + */ public double getMiterLimit() { return graphicsEnvironmentImpl.getMiterLimit(); } + /** + * Sets the current miter limit attribute. + * + * @param ml miter limit value between 0 and positive infinity with any + * other value being ignored and leaving the value unchanged. + */ public void setMiterLimit(double limit) { graphicsEnvironmentImpl.setMiterLimit(limit); } /** - * Sets the fill style. Will be used when rendering something, e.g. calling one - * of the fillText Methods. - * @param style + * Sets the fill style. Will be used when rendering something, e.g. calling + * one of the fillText Methods. + * + * @param style */ public void setFillStyle(Style style) { Object nativeFillStyle = graphicsEnvironmentImpl.setFillStyle(style, style.getCached()); @@ -487,16 +535,15 @@ /** * get the current font * - * @return current Font. - * of the fillText Methods. + * @return current Font. of the fillText Methods. */ public String getFont() { return graphicsEnvironmentImpl.getFont(); } /** - * Set the Font. Will be used when rendering Text, e.g. by calling one - * of the fillText Methods. + * Set the Font. Will be used when rendering Text, e.g. by calling one of + * the fillText Methods. * * @param font */