1.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java Thu May 23 15:36:42 2013 +0200
1.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java Fri May 24 07:36:58 2013 +0200
1.3 @@ -18,7 +18,6 @@
1.4 package net.java.html.canvas;
1.5
1.6 import net.java.html.canvas.spi.GraphicsEnvironment;
1.7 -import java.awt.Dimension;
1.8
1.9 /**
1.10 *
1.11 @@ -133,17 +132,17 @@
1.12 graphicsEnvironmentImpl.scale(x, y);
1.13 }
1.14
1.15 - public void drawImage(ImageData image, double x, double y){
1.16 - graphicsEnvironmentImpl.drawImage(image, x, y);
1.17 - }
1.18 -
1.19 - public void drawImage(ImageData image, double x, double y, double width, double height){
1.20 - graphicsEnvironmentImpl.drawImage(image, x, y, width, height);
1.21 - }
1.22 -
1.23 - public void drawImage(ImageData image, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height){
1.24 - graphicsEnvironmentImpl.drawImage(image, sx, sy, sWidth, sHeight, x, y, width, height);
1.25 - }
1.26 +//// public void drawImage(ImageData image, double x, double y){
1.27 +//// graphicsEnvironmentImpl.drawImage(image, x, y);
1.28 +//// }
1.29 +////
1.30 +//// public void drawImage(ImageData image, double x, double y, double width, double height){
1.31 +//// graphicsEnvironmentImpl.drawImage(image, x, y, width, height);
1.32 +//// }
1.33 +////
1.34 +//// public void drawImage(ImageData image, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height){
1.35 +//// graphicsEnvironmentImpl.drawImage(image, sx, sy, sWidth, sHeight, x, y, width, height);
1.36 +//// }
1.37
1.38 public void setFillStyle(String style){
1.39 graphicsEnvironmentImpl.setFillStyle(style);
1.40 @@ -269,25 +268,25 @@
1.41 graphicsEnvironmentImpl.strokeText(text, x, y, maxWidth);
1.42 }
1.43
1.44 -// public ImageData createImageData(double x, double y){
1.45 -// return graphicsEnvironmentImpl.createImageData(x, y);
1.46 -// }
1.47 -//
1.48 -// public ImageData createImageData(ImageData imageData){
1.49 -// return graphicsEnvironmentImpl.createImageData(imageData);
1.50 -// }
1.51 -//
1.52 -// public ImageData getImageData(double x, double y, double width, double height){
1.53 -// return graphicsEnvironmentImpl.getImageData(x, y, width, height);
1.54 -// }
1.55 -//
1.56 -// public void putImageData(ImageData imageData, double x, double y){
1.57 -// graphicsEnvironmentImpl.putImageData(imageData, x, y);
1.58 -// }
1.59 -//
1.60 -// public void putImageData(ImageData imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight){
1.61 -// graphicsEnvironmentImpl.putImageData(imageData, x, y, dirtyx, dirtyy, dirtywidth, dirtyheight);
1.62 -// }
1.63 +//// public ImageData createImageData(double x, double y){
1.64 +//// return graphicsEnvironmentImpl.createImageData(x, y);
1.65 +//// }
1.66 +////
1.67 +//// public ImageData createImageData(ImageData imageData){
1.68 +//// return graphicsEnvironmentImpl.createImageData(imageData);
1.69 +//// }
1.70 +////
1.71 +//// public ImageData getImageData(double x, double y, double width, double height){
1.72 +//// return graphicsEnvironmentImpl.getImageData(x, y, width, height);
1.73 +//// }
1.74 +////
1.75 +//// public void putImageData(ImageData imageData, double x, double y){
1.76 +//// graphicsEnvironmentImpl.putImageData(imageData, x, y);
1.77 +//// }
1.78 +////
1.79 +//// public void putImageData(ImageData imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight){
1.80 +//// graphicsEnvironmentImpl.putImageData(imageData, x, y, dirtyx, dirtyy, dirtywidth, dirtyheight);
1.81 +//// }
1.82
1.83 public void setGlobalAlpha(double alpha){
1.84 graphicsEnvironmentImpl.setGlobalAlpha(alpha);
1.85 @@ -309,17 +308,17 @@
1.86 return new LinearGradient(x0, y0, x1, y1);
1.87 }
1.88
1.89 - public Pattern createPattern(ImageData image, String repeat){
1.90 - return new Pattern(image, repeat);
1.91 - }
1.92 +//// public Pattern createPattern(ImageData image, String repeat){
1.93 +//// return new Pattern(image, repeat);
1.94 +//// }
1.95
1.96 public RadialGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1){
1.97 return new RadialGradient(x0, y0, r0, x1, y1, r1);
1.98 }
1.99
1.100 -// public ImageData getImageDataForPath(String path){
1.101 -// return graphicsEnvironmentImpl.getImageForPath(path);
1.102 -// }
1.103 +//// public ImageData getImageDataForPath(String path){
1.104 +//// return graphicsEnvironmentImpl.getImageForPath(path);
1.105 +//// }
1.106
1.107 public int getHeight(){
1.108 return graphicsEnvironmentImpl.getHeight();