# HG changeset patch # User Jaroslav Tulach # Date 1380235267 -7200 # Node ID 304e6ee678620de12c962f5dd4200895837ae0d2 # Parent 0a7c08a9469af0036884598f6dce6f479d2f0197 Commenting out currently not needed methods diff -r 0a7c08a9469a -r 304e6ee67862 javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/HTML5GraphicsEnvironment.java --- a/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/HTML5GraphicsEnvironment.java Thu Sep 26 23:50:31 2013 +0200 +++ b/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/HTML5GraphicsEnvironment.java Fri Sep 27 00:41:07 2013 +0200 @@ -257,7 +257,7 @@ @JavaScriptBody(args = {"context", "obj"}, body = "context.strokeStyle=obj;") private native void setStrokeStyleImpl(Object context, Object obj); - +/* @JavaScriptBody(args = {"color"}, body = "this._context().shadowColor=color.valueOf();") @Override public native void setShadowColor(String color); @@ -292,7 +292,7 @@ @JavaScriptBody(args = {}, body = "return this._context().shadowOffsetY;") @Override public native double getShadowOffsetY(); - +*/ @JavaScriptBody(args = {}, body = "return this._context().lineCap;") @Override public native String getLineCap(); @@ -376,16 +376,16 @@ @JavaScriptBody(args = {"text", "x", "y", "maxWidth"}, body = "this._context().strokeText(text,x,y,maxWidth);") @Override public native void strokeText(String text, double x, double y, double maxWidth); - +/* @Override public ImageData createPixelMap(double x, double y) { return new ImageDataWrapper(createPixelMapImpl(x, y)); } - +*/ @JavaScriptBody(args = {"x", "y"}, body = "return this._context().createImageData(x,y);") private native Object createPixelMapImpl(double x, double y); - +/* @Override public ImageData createPixelMap(ImageData imageData) { return new ImageDataWrapper(createPixelMapImpl(imageData.getWidth(), imageData.getHeight())); @@ -395,25 +395,25 @@ public ImageData getPixelMap(double x, double y, double width, double height) { return new ImageDataWrapper(getPixelMapImpl(x, y, width, height)); } - +*/ @JavaScriptBody(args = {"x", "y", "width", "height"}, body = "return this._context().getImageData(x,y,width,height);") private native Object getPixelMapImpl(double x, double y, double width, double height); - +/* @Override public void putPixelMap(ImageData imageData, double x, double y) { putPixelMapImpl(((ImageDataWrapper) imageData).object(), x, y); } - +*/ @JavaScriptBody(args = {"imageData", "x", "y"}, body = "this._context().putImageData(imageData,x,y);") private native void putPixelMapImpl(Object imageData, double x, double y); - +/* @Override public void putPixelMap(ImageData imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight) { putPixelMapImpl(((ImageDataWrapper) imageData).object(), x, y, dirtyx, dirtyy, dirtywidth, dirtyheight); } - +*/ @JavaScriptBody(args = {"imageData", "x", "y", "dirtyx", "dirtyy", "dirtywidth", "dirtyheight"}, body = "this._context().putImageData(imageData,x,y, dirtyx, dirtyy, dirtywidth,dirtyheight);") private native void putPixelMapImpl(Object imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight); @@ -466,7 +466,7 @@ public int getWidth() { return canvas.getWidth(); } - +/* @Override public void setHeight(int height) { canvas.setHeight(height); @@ -476,7 +476,7 @@ public void setWidth(int width) { canvas.setWidth(width); } - +*/ // @JavaScriptBody(args = {"src"}, body = "var image = new Image();console.log('image complete '+image.complete);image.src = './'+ src; return image;") @JavaScriptBody(args = {"src"}, body = "console.log ('looking up image by id '+src);return document.getElementById(src);") private static native Object createImage(String src);