コード例 #1
0
 /**
  * Set the current Stroke Style to the specified color.
  *
  * @param color {@link Color}
  */
 public void setStrokeStyle(Color color) {
   impl.setStrokeStyle(color.toString());
 }
コード例 #2
0
 /**
  * Set the current Stroke Style to the specified color gradient.
  *
  * <p>WARNING: Canvas Gradients currently have an unfinished implementation for Internet Explorer.
  * We would more than welcome a patch from the community to get gradients working on IE.
  *
  * @param grad {@link CanvasGradient}
  */
 public void setStrokeStyle(CanvasGradient grad) {
   impl.setStrokeStyle(grad);
 }