# HG changeset patch # User toni.epple@eppleton.de # Date 1369145279 -7200 # Node ID 4613a6fe2862cbe59073139776d0605ab7a966ef # Parent 99e875d14a974dad3e0db9a04507d822ce1940c6 Refactored names to unpopular naming scheme, because (a) bck2brwsr Canvas implementation must be named Canvas due to mapping in bck2brwsr and I don't want interface and impl to have the same name. (b) with the "I" prefix at least it's consistent, even if nobody uses that anymore. diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/pom.xml --- a/javaquery/canvas/pom.xml Tue May 21 15:27:19 2013 +0200 +++ b/javaquery/canvas/pom.xml Tue May 21 16:07:59 2013 +0200 @@ -10,7 +10,7 @@ net.java.html canvas 0.8-SNAPSHOT - pom + jar canvas http://maven.apache.org @@ -54,6 +54,32 @@ org-openide-util-lookup provided - + + org.apidesign.bck2brwsr + emul + ${project.version} + rt + jar + compile + + + org.apidesign.bck2brwsr + vm4brwsr + ${project.version} + jar + test + + + org.apidesign.bck2brwsr + vmtest + ${project.version} + test + + + org.apidesign.bck2brwsr + launcher.http + ${project.version} + test + diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/Canvas.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Canvas.java Tue May 21 15:27:19 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -/** - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach - * - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. Look for COPYING file in the top folder. If not, see - * http://opensource.org/licenses/GPL-2.0. - */ -package net.java.html.canvas; - - -/** - * - * @author antonepple - */ -public interface Canvas { - - GraphicsContext getContext(); - - int getHeight(); - - int getWidth(); - - void setHeight(int height); - - void setWidth(int width); - -} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java Tue May 21 15:27:19 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,187 +0,0 @@ -/** - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach - * - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. Look for COPYING file in the top folder. If not, see - * http://opensource.org/licenses/GPL-2.0. - */ -package net.java.html.canvas; - - -/** - * - * @author antonepple - */ -public interface GraphicsContext { - - public void arc(double centerX, - double centerY, - double startAngle, - double radius, - double endAngle, - boolean ccw); - - public void arcTo(double x1, - double y1, - double x2, - double y2, - double r); - - public boolean isPointInPath(double x, double y); - - public void fill(); - - public void stroke(); - - public void beginPath(); - - public void closePath(); - - public void clip(); - - public void moveTo(double x, double y); - - public void lineTo(double x, double y); - - public void quadraticCurveTo(double cpx, double cpy, double x, double y); - - public void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y); - - public void fillRect(double x, double y, double width, double height); - - public void strokeRect(double x, double y, double width, double height); - - public void clearRect(double x, double y, double width, double height); - - public void rect(double x, double y, double width, double height); - - public void save(); - - public void restore(); - - public void rotate(double angle); - - public void transform(double a, double b, double c, double d, double e, double f); - - public void setTransform(double a, double b, double c, double d, double e, double f); - - public void translate(double x, double y); - - public void scale(double x, double y); - - public void drawImage(Image image, double x, double y); - - public void drawImage(Image image, double x, double y, double width, double height); - - public void drawImage(Image image, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height); - - public void setFillStyle(String style); - - public String getFillStyle(); - - public void setFillStyle(LinearGradient style); - - public void setFillStyle(RadialGradient style); - - public void setFillStyle(Pattern style); - - public void setStrokeStyle(String style); - - public void setStrokeStyle(LinearGradient style); - - public void setStrokeStyle(RadialGradient style); - - public void setStrokeStyle(Pattern style); - - public void setShadowColor(String color); - - public void setShadowBlur(double blur); - - public void setShadowOffsetX(double x); - - public void setShadowOffsetY(double y); - - public String getStrokeStyle(); - - public String getShadowColor(); - - public double getShadowBlur(); - - public double getShadowOffsetX(); - - public double getShadowOffsetY(); - - public String getLineCap(); - - public void setLineCap(String style); - - public String getLineJoin(); - - public void setLineJoin(String style); - - public double getLineWidth(); - - public void setLineWidth(double width); - - public double getMiterLimit(); - - public void setMiterLimit(double limit); - - public String getFont(); - - public void setFont(String font); - - public String getTextAlign(); - - public void setTextAlign(String textAlign); - - public String getTextBaseline(); - - public void setTextBaseline(String textbaseline); - - public void fillText(String text, double x, double y); - - public void fillText(String text, double x, double y, double maxWidth); - - public TextMetrics measureText(String text); - - public void strokeText(String text, double x, double y); - - public void strokeText(String text, double x, double y, double maxWidth); - - public ImageData createImageData(double x, double y); - - public ImageData createImageData(ImageData imageData); - - public ImageData getImageData(double x, double y, double width, double height); - - public void putImageData(ImageData imageData, double x, double y); - - public void putImageData(ImageData imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight); - - public void setGlobalAlpha(double alpha); - - public double getGlobalAlpha(); - - public void setGlobalCompositeOperation(String operation); - - public String getGlobalCompositeOperation(); - - public LinearGradient createLinearGradient(double x0, double y0, double x1, double y1); - - public Pattern createPattern(Image image, String repeat); - - public RadialGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1); - - public Image getImageForPath(String path); -} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/ICanvas.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/ICanvas.java Tue May 21 16:07:59 2013 +0200 @@ -0,0 +1,37 @@ +/** + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach + * + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. Look for COPYING file in the top folder. If not, see + * http://opensource.org/licenses/GPL-2.0. + */ +package net.java.html.canvas; + + +/** + * + * @author antonepple + */ +public interface ICanvas { + + IGraphicsContext getContext(); + + int getHeight(); + + int getWidth(); + + void setHeight(int height); + + void setWidth(int width); + +} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/IGraphicsContext.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IGraphicsContext.java Tue May 21 16:07:59 2013 +0200 @@ -0,0 +1,187 @@ +/** + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach + * + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. Look for COPYING file in the top folder. If not, see + * http://opensource.org/licenses/GPL-2.0. + */ +package net.java.html.canvas; + + +/** + * + * @author antonepple + */ +public interface IGraphicsContext { + + public void arc(double centerX, + double centerY, + double startAngle, + double radius, + double endAngle, + boolean ccw); + + public void arcTo(double x1, + double y1, + double x2, + double y2, + double r); + + public boolean isPointInPath(double x, double y); + + public void fill(); + + public void stroke(); + + public void beginPath(); + + public void closePath(); + + public void clip(); + + public void moveTo(double x, double y); + + public void lineTo(double x, double y); + + public void quadraticCurveTo(double cpx, double cpy, double x, double y); + + public void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y); + + public void fillRect(double x, double y, double width, double height); + + public void strokeRect(double x, double y, double width, double height); + + public void clearRect(double x, double y, double width, double height); + + public void rect(double x, double y, double width, double height); + + public void save(); + + public void restore(); + + public void rotate(double angle); + + public void transform(double a, double b, double c, double d, double e, double f); + + public void setTransform(double a, double b, double c, double d, double e, double f); + + public void translate(double x, double y); + + public void scale(double x, double y); + + public void drawImage(IImage image, double x, double y); + + public void drawImage(IImage image, double x, double y, double width, double height); + + public void drawImage(IImage image, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height); + + public void setFillStyle(String style); + + public String getFillStyle(); + + public void setFillStyle(ILinearGradient style); + + public void setFillStyle(IRadialGradient style); + + public void setFillStyle(IPattern style); + + public void setStrokeStyle(String style); + + public void setStrokeStyle(ILinearGradient style); + + public void setStrokeStyle(IRadialGradient style); + + public void setStrokeStyle(IPattern style); + + public void setShadowColor(String color); + + public void setShadowBlur(double blur); + + public void setShadowOffsetX(double x); + + public void setShadowOffsetY(double y); + + public String getStrokeStyle(); + + public String getShadowColor(); + + public double getShadowBlur(); + + public double getShadowOffsetX(); + + public double getShadowOffsetY(); + + public String getLineCap(); + + public void setLineCap(String style); + + public String getLineJoin(); + + public void setLineJoin(String style); + + public double getLineWidth(); + + public void setLineWidth(double width); + + public double getMiterLimit(); + + public void setMiterLimit(double limit); + + public String getFont(); + + public void setFont(String font); + + public String getTextAlign(); + + public void setTextAlign(String textAlign); + + public String getTextBaseline(); + + public void setTextBaseline(String textbaseline); + + public void fillText(String text, double x, double y); + + public void fillText(String text, double x, double y, double maxWidth); + + public ITextMetrics measureText(String text); + + public void strokeText(String text, double x, double y); + + public void strokeText(String text, double x, double y, double maxWidth); + + public IImageData createImageData(double x, double y); + + public IImageData createImageData(IImageData imageData); + + public IImageData getImageData(double x, double y, double width, double height); + + public void putImageData(IImageData imageData, double x, double y); + + public void putImageData(IImageData imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight); + + public void setGlobalAlpha(double alpha); + + public double getGlobalAlpha(); + + public void setGlobalCompositeOperation(String operation); + + public String getGlobalCompositeOperation(); + + public ILinearGradient createLinearGradient(double x0, double y0, double x1, double y1); + + public IPattern createPattern(IImage image, String repeat); + + public IRadialGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1); + + public IImage getImageForPath(String path); +} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/IImage.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IImage.java Tue May 21 16:07:59 2013 +0200 @@ -0,0 +1,32 @@ +/** + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach + * + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. Look for COPYING file in the top folder. If not, see + * http://opensource.org/licenses/GPL-2.0. + */ +package net.java.html.canvas; + +/** + * + * @author antonepple + */ +public interface IImage { + + + public int getHeight(); + + public int getWidth(); + + +} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/IImageData.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IImageData.java Tue May 21 16:07:59 2013 +0200 @@ -0,0 +1,32 @@ +/** + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach + * + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. Look for COPYING file in the top folder. If not, see + * http://opensource.org/licenses/GPL-2.0. + */ +package net.java.html.canvas; + + + +/** + * + * @author antonepple + */ +public interface IImageData { + + public double getHeight(); + + public double getWidth(); + +} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/ILinearGradient.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/ILinearGradient.java Tue May 21 16:07:59 2013 +0200 @@ -0,0 +1,28 @@ +/** + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach + * + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. Look for COPYING file in the top folder. If not, see + * http://opensource.org/licenses/GPL-2.0. + */ +package net.java.html.canvas; + +/** + * + * @author antonepple + */ +public interface ILinearGradient { + + void addColorStop(double position, String color); + +} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/IPattern.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IPattern.java Tue May 21 16:07:59 2013 +0200 @@ -0,0 +1,26 @@ +/** + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach + * + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. Look for COPYING file in the top folder. If not, see + * http://opensource.org/licenses/GPL-2.0. + */ +package net.java.html.canvas; + +/** + * + * @author antonepple + */ +public interface IPattern { + +} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/IRadialGradient.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IRadialGradient.java Tue May 21 16:07:59 2013 +0200 @@ -0,0 +1,28 @@ +/** + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach + * + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. Look for COPYING file in the top folder. If not, see + * http://opensource.org/licenses/GPL-2.0. + */ +package net.java.html.canvas; + +/** + * + * @author antonepple + */ +public interface IRadialGradient { + + void addColorStop(double position, String color); + +} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/ITextMetrics.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/ITextMetrics.java Tue May 21 16:07:59 2013 +0200 @@ -0,0 +1,30 @@ +/** + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach + * + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program. Look for COPYING file in the top folder. If not, see + * http://opensource.org/licenses/GPL-2.0. + */ +package net.java.html.canvas; + +/** + * + * @author antonepple + */ +public interface ITextMetrics { + + double getHeight(); + + double getWidth(); + +} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/Image.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Image.java Tue May 21 15:27:19 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/** - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach - * - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. Look for COPYING file in the top folder. If not, see - * http://opensource.org/licenses/GPL-2.0. - */ -package net.java.html.canvas; - -/** - * - * @author antonepple - */ -public interface Image { - - - public int getHeight(); - - public int getWidth(); - - -} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/ImageData.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/ImageData.java Tue May 21 15:27:19 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/** - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach - * - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. Look for COPYING file in the top folder. If not, see - * http://opensource.org/licenses/GPL-2.0. - */ -package net.java.html.canvas; - - - -/** - * - * @author antonepple - */ -public interface ImageData { - - public double getHeight(); - - public double getWidth(); - -} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/LinearGradient.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/LinearGradient.java Tue May 21 15:27:19 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -/** - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach - * - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. Look for COPYING file in the top folder. If not, see - * http://opensource.org/licenses/GPL-2.0. - */ -package net.java.html.canvas; - -/** - * - * @author antonepple - */ -public interface LinearGradient { - - void addColorStop(double position, String color); - -} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/Pattern.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Pattern.java Tue May 21 15:27:19 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -/** - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach - * - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. Look for COPYING file in the top folder. If not, see - * http://opensource.org/licenses/GPL-2.0. - */ -package net.java.html.canvas; - -/** - * - * @author antonepple - */ -public interface Pattern { - -} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/RadialGradient.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/RadialGradient.java Tue May 21 15:27:19 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -/** - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach - * - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. Look for COPYING file in the top folder. If not, see - * http://opensource.org/licenses/GPL-2.0. - */ -package net.java.html.canvas; - -/** - * - * @author antonepple - */ -public interface RadialGradient { - - void addColorStop(double position, String color); - -} diff -r 99e875d14a97 -r 4613a6fe2862 javaquery/canvas/src/main/java/net/java/html/canvas/TextMetrics.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/TextMetrics.java Tue May 21 15:27:19 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -/** - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach - * - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, version 2 of the License. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License along with - * this program. Look for COPYING file in the top folder. If not, see - * http://opensource.org/licenses/GPL-2.0. - */ -package net.java.html.canvas; - -/** - * - * @author antonepple - */ -public interface TextMetrics { - - double getHeight(); - - double getWidth(); - -}