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. canvas
authortoni.epple@eppleton.de
Tue, 21 May 2013 16:07:59 +0200
branchcanvas
changeset 11244613a6fe2862
parent 1123 99e875d14a97
child 1125 a3d504d7e588
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.
javaquery/canvas/pom.xml
javaquery/canvas/src/main/java/net/java/html/canvas/Canvas.java
javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java
javaquery/canvas/src/main/java/net/java/html/canvas/ICanvas.java
javaquery/canvas/src/main/java/net/java/html/canvas/IGraphicsContext.java
javaquery/canvas/src/main/java/net/java/html/canvas/IImage.java
javaquery/canvas/src/main/java/net/java/html/canvas/IImageData.java
javaquery/canvas/src/main/java/net/java/html/canvas/ILinearGradient.java
javaquery/canvas/src/main/java/net/java/html/canvas/IPattern.java
javaquery/canvas/src/main/java/net/java/html/canvas/IRadialGradient.java
javaquery/canvas/src/main/java/net/java/html/canvas/ITextMetrics.java
javaquery/canvas/src/main/java/net/java/html/canvas/Image.java
javaquery/canvas/src/main/java/net/java/html/canvas/ImageData.java
javaquery/canvas/src/main/java/net/java/html/canvas/LinearGradient.java
javaquery/canvas/src/main/java/net/java/html/canvas/Pattern.java
javaquery/canvas/src/main/java/net/java/html/canvas/RadialGradient.java
javaquery/canvas/src/main/java/net/java/html/canvas/TextMetrics.java
     1.1 --- a/javaquery/canvas/pom.xml	Tue May 21 15:27:19 2013 +0200
     1.2 +++ b/javaquery/canvas/pom.xml	Tue May 21 16:07:59 2013 +0200
     1.3 @@ -10,7 +10,7 @@
     1.4      <groupId>net.java.html</groupId>
     1.5      <artifactId>canvas</artifactId>
     1.6      <version>0.8-SNAPSHOT</version>
     1.7 -    <packaging>pom</packaging>
     1.8 +    <packaging>jar</packaging>
     1.9      <name>canvas</name>
    1.10      <url>http://maven.apache.org</url>
    1.11      <build>
    1.12 @@ -54,6 +54,32 @@
    1.13              <artifactId>org-openide-util-lookup</artifactId>
    1.14              <scope>provided</scope>
    1.15          </dependency>
    1.16 -     
    1.17 +        <dependency>
    1.18 +            <groupId>org.apidesign.bck2brwsr</groupId>
    1.19 +            <artifactId>emul</artifactId>
    1.20 +            <version>${project.version}</version>
    1.21 +            <classifier>rt</classifier>
    1.22 +            <type>jar</type>
    1.23 +            <scope>compile</scope>
    1.24 +        </dependency>
    1.25 +        <dependency>
    1.26 +            <groupId>org.apidesign.bck2brwsr</groupId>
    1.27 +            <artifactId>vm4brwsr</artifactId>
    1.28 +            <version>${project.version}</version>
    1.29 +            <type>jar</type>
    1.30 +            <scope>test</scope>
    1.31 +        </dependency>
    1.32 +        <dependency>
    1.33 +            <groupId>org.apidesign.bck2brwsr</groupId>
    1.34 +            <artifactId>vmtest</artifactId>
    1.35 +            <version>${project.version}</version>
    1.36 +            <scope>test</scope>
    1.37 +        </dependency>
    1.38 +        <dependency>
    1.39 +            <groupId>org.apidesign.bck2brwsr</groupId>
    1.40 +            <artifactId>launcher.http</artifactId>
    1.41 +            <version>${project.version}</version>
    1.42 +            <scope>test</scope>
    1.43 +        </dependency>    
    1.44      </dependencies>
    1.45  </project>
     2.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Canvas.java	Tue May 21 15:27:19 2013 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,37 +0,0 @@
     2.4 -/**
     2.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     2.6 - * <jaroslav.tulach@apidesign.org>
     2.7 - *
     2.8 - * This program is free software: you can redistribute it and/or modify it under
     2.9 - * the terms of the GNU General Public License as published by the Free Software
    2.10 - * Foundation, version 2 of the License.
    2.11 - *
    2.12 - * This program is distributed in the hope that it will be useful, but WITHOUT
    2.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    2.14 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    2.15 - * details.
    2.16 - *
    2.17 - * You should have received a copy of the GNU General Public License along with
    2.18 - * this program. Look for COPYING file in the top folder. If not, see
    2.19 - * http://opensource.org/licenses/GPL-2.0.
    2.20 - */
    2.21 -package net.java.html.canvas;
    2.22 -
    2.23 -
    2.24 -/**
    2.25 - *
    2.26 - * @author antonepple
    2.27 - */
    2.28 -public interface Canvas {
    2.29 -
    2.30 -    GraphicsContext getContext();
    2.31 -
    2.32 -    int getHeight();
    2.33 -
    2.34 -    int getWidth();
    2.35 -
    2.36 -    void setHeight(int height);
    2.37 -
    2.38 -    void setWidth(int width);
    2.39 -    
    2.40 -}
     3.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java	Tue May 21 15:27:19 2013 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,187 +0,0 @@
     3.4 -/**
     3.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     3.6 - * <jaroslav.tulach@apidesign.org>
     3.7 - *
     3.8 - * This program is free software: you can redistribute it and/or modify it under
     3.9 - * the terms of the GNU General Public License as published by the Free Software
    3.10 - * Foundation, version 2 of the License.
    3.11 - *
    3.12 - * This program is distributed in the hope that it will be useful, but WITHOUT
    3.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    3.14 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    3.15 - * details.
    3.16 - *
    3.17 - * You should have received a copy of the GNU General Public License along with
    3.18 - * this program. Look for COPYING file in the top folder. If not, see
    3.19 - * http://opensource.org/licenses/GPL-2.0.
    3.20 - */
    3.21 -package net.java.html.canvas;
    3.22 -
    3.23 -
    3.24 -/**
    3.25 - *
    3.26 - * @author antonepple
    3.27 - */
    3.28 -public interface GraphicsContext {
    3.29 -
    3.30 -    public void arc(double centerX,
    3.31 -            double centerY,
    3.32 -            double startAngle,
    3.33 -            double radius,
    3.34 -            double endAngle,
    3.35 -            boolean ccw);
    3.36 -
    3.37 -    public void arcTo(double x1,
    3.38 -            double y1,
    3.39 -            double x2,
    3.40 -            double y2,
    3.41 -            double r);
    3.42 -
    3.43 -    public boolean isPointInPath(double x, double y);
    3.44 -
    3.45 -    public void fill();
    3.46 -
    3.47 -    public void stroke();
    3.48 -
    3.49 -    public void beginPath();
    3.50 -
    3.51 -    public void closePath();
    3.52 -
    3.53 -    public void clip();
    3.54 -
    3.55 -    public void moveTo(double x, double y);
    3.56 -
    3.57 -    public void lineTo(double x, double y);
    3.58 -
    3.59 -    public void quadraticCurveTo(double cpx, double cpy, double x, double y);
    3.60 -
    3.61 -    public void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y);
    3.62 -
    3.63 -    public void fillRect(double x, double y, double width, double height);
    3.64 -
    3.65 -    public void strokeRect(double x, double y, double width, double height);
    3.66 -
    3.67 -    public void clearRect(double x, double y, double width, double height);
    3.68 -
    3.69 -    public void rect(double x, double y, double width, double height);
    3.70 -
    3.71 -    public void save();
    3.72 -
    3.73 -    public void restore();
    3.74 -
    3.75 -    public void rotate(double angle);
    3.76 -
    3.77 -    public void transform(double a, double b, double c, double d, double e, double f);
    3.78 -
    3.79 -    public void setTransform(double a, double b, double c, double d, double e, double f);
    3.80 -
    3.81 -    public void translate(double x, double y);
    3.82 -
    3.83 -    public void scale(double x, double y);
    3.84 -
    3.85 -    public void drawImage(Image image, double x, double y);
    3.86 -
    3.87 -    public void drawImage(Image image, double x, double y, double width, double height);
    3.88 -
    3.89 -    public void drawImage(Image image, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height);
    3.90 -
    3.91 -    public void setFillStyle(String style);
    3.92 -
    3.93 -    public String getFillStyle();
    3.94 -
    3.95 -    public void setFillStyle(LinearGradient style);
    3.96 -
    3.97 -    public void setFillStyle(RadialGradient style);
    3.98 -
    3.99 -    public void setFillStyle(Pattern style);
   3.100 -
   3.101 -    public void setStrokeStyle(String style);
   3.102 -
   3.103 -    public void setStrokeStyle(LinearGradient style);
   3.104 -
   3.105 -    public void setStrokeStyle(RadialGradient style);
   3.106 -
   3.107 -    public void setStrokeStyle(Pattern style);
   3.108 -
   3.109 -    public void setShadowColor(String color);
   3.110 -
   3.111 -    public void setShadowBlur(double blur);
   3.112 -
   3.113 -    public void setShadowOffsetX(double x);
   3.114 -
   3.115 -    public void setShadowOffsetY(double y);
   3.116 -
   3.117 -    public String getStrokeStyle();
   3.118 -
   3.119 -    public String getShadowColor();
   3.120 -
   3.121 -    public double getShadowBlur();
   3.122 -
   3.123 -    public double getShadowOffsetX();
   3.124 -
   3.125 -    public double getShadowOffsetY();
   3.126 -
   3.127 -    public String getLineCap();
   3.128 -
   3.129 -    public void setLineCap(String style);
   3.130 -
   3.131 -    public String getLineJoin();
   3.132 -
   3.133 -    public void setLineJoin(String style);
   3.134 -
   3.135 -    public double getLineWidth();
   3.136 -
   3.137 -    public void setLineWidth(double width);
   3.138 -
   3.139 -    public double getMiterLimit();
   3.140 -
   3.141 -    public void setMiterLimit(double limit);
   3.142 -
   3.143 -    public String getFont();
   3.144 -
   3.145 -    public void setFont(String font);
   3.146 -
   3.147 -    public String getTextAlign();
   3.148 -
   3.149 -    public void setTextAlign(String textAlign);
   3.150 -
   3.151 -    public String getTextBaseline();
   3.152 -
   3.153 -    public void setTextBaseline(String textbaseline);
   3.154 -
   3.155 -    public void fillText(String text, double x, double y);
   3.156 -
   3.157 -    public void fillText(String text, double x, double y, double maxWidth);
   3.158 -
   3.159 -    public TextMetrics measureText(String text);
   3.160 -
   3.161 -    public void strokeText(String text, double x, double y);
   3.162 -
   3.163 -    public void strokeText(String text, double x, double y, double maxWidth);
   3.164 -
   3.165 -    public ImageData createImageData(double x, double y);
   3.166 -
   3.167 -    public ImageData createImageData(ImageData imageData);
   3.168 -
   3.169 -    public ImageData getImageData(double x, double y, double width, double height);
   3.170 -
   3.171 -    public void putImageData(ImageData imageData, double x, double y);
   3.172 -
   3.173 -    public void putImageData(ImageData imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight);
   3.174 -
   3.175 -    public void setGlobalAlpha(double alpha);
   3.176 -
   3.177 -    public double getGlobalAlpha();
   3.178 -
   3.179 -    public void setGlobalCompositeOperation(String operation);
   3.180 -
   3.181 -    public String getGlobalCompositeOperation();
   3.182 -
   3.183 -    public LinearGradient createLinearGradient(double x0, double y0, double x1, double y1);
   3.184 -
   3.185 -    public Pattern createPattern(Image image, String repeat);
   3.186 -
   3.187 -    public RadialGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
   3.188 -    
   3.189 -    public Image getImageForPath(String path);
   3.190 -}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/ICanvas.java	Tue May 21 16:07:59 2013 +0200
     4.3 @@ -0,0 +1,37 @@
     4.4 +/**
     4.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     4.6 + * <jaroslav.tulach@apidesign.org>
     4.7 + *
     4.8 + * This program is free software: you can redistribute it and/or modify it under
     4.9 + * the terms of the GNU General Public License as published by the Free Software
    4.10 + * Foundation, version 2 of the License.
    4.11 + *
    4.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
    4.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    4.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    4.15 + * details.
    4.16 + *
    4.17 + * You should have received a copy of the GNU General Public License along with
    4.18 + * this program. Look for COPYING file in the top folder. If not, see
    4.19 + * http://opensource.org/licenses/GPL-2.0.
    4.20 + */
    4.21 +package net.java.html.canvas;
    4.22 +
    4.23 +
    4.24 +/**
    4.25 + *
    4.26 + * @author antonepple
    4.27 + */
    4.28 +public interface ICanvas {
    4.29 +
    4.30 +    IGraphicsContext getContext();
    4.31 +
    4.32 +    int getHeight();
    4.33 +
    4.34 +    int getWidth();
    4.35 +
    4.36 +    void setHeight(int height);
    4.37 +
    4.38 +    void setWidth(int width);
    4.39 +    
    4.40 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IGraphicsContext.java	Tue May 21 16:07:59 2013 +0200
     5.3 @@ -0,0 +1,187 @@
     5.4 +/**
     5.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     5.6 + * <jaroslav.tulach@apidesign.org>
     5.7 + *
     5.8 + * This program is free software: you can redistribute it and/or modify it under
     5.9 + * the terms of the GNU General Public License as published by the Free Software
    5.10 + * Foundation, version 2 of the License.
    5.11 + *
    5.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
    5.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    5.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    5.15 + * details.
    5.16 + *
    5.17 + * You should have received a copy of the GNU General Public License along with
    5.18 + * this program. Look for COPYING file in the top folder. If not, see
    5.19 + * http://opensource.org/licenses/GPL-2.0.
    5.20 + */
    5.21 +package net.java.html.canvas;
    5.22 +
    5.23 +
    5.24 +/**
    5.25 + *
    5.26 + * @author antonepple
    5.27 + */
    5.28 +public interface IGraphicsContext {
    5.29 +
    5.30 +    public void arc(double centerX,
    5.31 +            double centerY,
    5.32 +            double startAngle,
    5.33 +            double radius,
    5.34 +            double endAngle,
    5.35 +            boolean ccw);
    5.36 +
    5.37 +    public void arcTo(double x1,
    5.38 +            double y1,
    5.39 +            double x2,
    5.40 +            double y2,
    5.41 +            double r);
    5.42 +
    5.43 +    public boolean isPointInPath(double x, double y);
    5.44 +
    5.45 +    public void fill();
    5.46 +
    5.47 +    public void stroke();
    5.48 +
    5.49 +    public void beginPath();
    5.50 +
    5.51 +    public void closePath();
    5.52 +
    5.53 +    public void clip();
    5.54 +
    5.55 +    public void moveTo(double x, double y);
    5.56 +
    5.57 +    public void lineTo(double x, double y);
    5.58 +
    5.59 +    public void quadraticCurveTo(double cpx, double cpy, double x, double y);
    5.60 +
    5.61 +    public void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y);
    5.62 +
    5.63 +    public void fillRect(double x, double y, double width, double height);
    5.64 +
    5.65 +    public void strokeRect(double x, double y, double width, double height);
    5.66 +
    5.67 +    public void clearRect(double x, double y, double width, double height);
    5.68 +
    5.69 +    public void rect(double x, double y, double width, double height);
    5.70 +
    5.71 +    public void save();
    5.72 +
    5.73 +    public void restore();
    5.74 +
    5.75 +    public void rotate(double angle);
    5.76 +
    5.77 +    public void transform(double a, double b, double c, double d, double e, double f);
    5.78 +
    5.79 +    public void setTransform(double a, double b, double c, double d, double e, double f);
    5.80 +
    5.81 +    public void translate(double x, double y);
    5.82 +
    5.83 +    public void scale(double x, double y);
    5.84 +
    5.85 +    public void drawImage(IImage image, double x, double y);
    5.86 +
    5.87 +    public void drawImage(IImage image, double x, double y, double width, double height);
    5.88 +
    5.89 +    public void drawImage(IImage image, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height);
    5.90 +
    5.91 +    public void setFillStyle(String style);
    5.92 +
    5.93 +    public String getFillStyle();
    5.94 +
    5.95 +    public void setFillStyle(ILinearGradient style);
    5.96 +
    5.97 +    public void setFillStyle(IRadialGradient style);
    5.98 +
    5.99 +    public void setFillStyle(IPattern style);
   5.100 +
   5.101 +    public void setStrokeStyle(String style);
   5.102 +
   5.103 +    public void setStrokeStyle(ILinearGradient style);
   5.104 +
   5.105 +    public void setStrokeStyle(IRadialGradient style);
   5.106 +
   5.107 +    public void setStrokeStyle(IPattern style);
   5.108 +
   5.109 +    public void setShadowColor(String color);
   5.110 +
   5.111 +    public void setShadowBlur(double blur);
   5.112 +
   5.113 +    public void setShadowOffsetX(double x);
   5.114 +
   5.115 +    public void setShadowOffsetY(double y);
   5.116 +
   5.117 +    public String getStrokeStyle();
   5.118 +
   5.119 +    public String getShadowColor();
   5.120 +
   5.121 +    public double getShadowBlur();
   5.122 +
   5.123 +    public double getShadowOffsetX();
   5.124 +
   5.125 +    public double getShadowOffsetY();
   5.126 +
   5.127 +    public String getLineCap();
   5.128 +
   5.129 +    public void setLineCap(String style);
   5.130 +
   5.131 +    public String getLineJoin();
   5.132 +
   5.133 +    public void setLineJoin(String style);
   5.134 +
   5.135 +    public double getLineWidth();
   5.136 +
   5.137 +    public void setLineWidth(double width);
   5.138 +
   5.139 +    public double getMiterLimit();
   5.140 +
   5.141 +    public void setMiterLimit(double limit);
   5.142 +
   5.143 +    public String getFont();
   5.144 +
   5.145 +    public void setFont(String font);
   5.146 +
   5.147 +    public String getTextAlign();
   5.148 +
   5.149 +    public void setTextAlign(String textAlign);
   5.150 +
   5.151 +    public String getTextBaseline();
   5.152 +
   5.153 +    public void setTextBaseline(String textbaseline);
   5.154 +
   5.155 +    public void fillText(String text, double x, double y);
   5.156 +
   5.157 +    public void fillText(String text, double x, double y, double maxWidth);
   5.158 +
   5.159 +    public ITextMetrics measureText(String text);
   5.160 +
   5.161 +    public void strokeText(String text, double x, double y);
   5.162 +
   5.163 +    public void strokeText(String text, double x, double y, double maxWidth);
   5.164 +
   5.165 +    public IImageData createImageData(double x, double y);
   5.166 +
   5.167 +    public IImageData createImageData(IImageData imageData);
   5.168 +
   5.169 +    public IImageData getImageData(double x, double y, double width, double height);
   5.170 +
   5.171 +    public void putImageData(IImageData imageData, double x, double y);
   5.172 +
   5.173 +    public void putImageData(IImageData imageData, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight);
   5.174 +
   5.175 +    public void setGlobalAlpha(double alpha);
   5.176 +
   5.177 +    public double getGlobalAlpha();
   5.178 +
   5.179 +    public void setGlobalCompositeOperation(String operation);
   5.180 +
   5.181 +    public String getGlobalCompositeOperation();
   5.182 +
   5.183 +    public ILinearGradient createLinearGradient(double x0, double y0, double x1, double y1);
   5.184 +
   5.185 +    public IPattern createPattern(IImage image, String repeat);
   5.186 +
   5.187 +    public IRadialGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
   5.188 +    
   5.189 +    public IImage getImageForPath(String path);
   5.190 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IImage.java	Tue May 21 16:07:59 2013 +0200
     6.3 @@ -0,0 +1,32 @@
     6.4 +/**
     6.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     6.6 + * <jaroslav.tulach@apidesign.org>
     6.7 + *
     6.8 + * This program is free software: you can redistribute it and/or modify it under
     6.9 + * the terms of the GNU General Public License as published by the Free Software
    6.10 + * Foundation, version 2 of the License.
    6.11 + *
    6.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
    6.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    6.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    6.15 + * details.
    6.16 + *
    6.17 + * You should have received a copy of the GNU General Public License along with
    6.18 + * this program. Look for COPYING file in the top folder. If not, see
    6.19 + * http://opensource.org/licenses/GPL-2.0.
    6.20 + */
    6.21 +package net.java.html.canvas;
    6.22 +
    6.23 +/**
    6.24 + *
    6.25 + * @author antonepple
    6.26 + */
    6.27 +public interface IImage {
    6.28 +    
    6.29 +    
    6.30 +    public int getHeight();
    6.31 +    
    6.32 +    public int getWidth();
    6.33 +    
    6.34 +    
    6.35 +}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IImageData.java	Tue May 21 16:07:59 2013 +0200
     7.3 @@ -0,0 +1,32 @@
     7.4 +/**
     7.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     7.6 + * <jaroslav.tulach@apidesign.org>
     7.7 + *
     7.8 + * This program is free software: you can redistribute it and/or modify it under
     7.9 + * the terms of the GNU General Public License as published by the Free Software
    7.10 + * Foundation, version 2 of the License.
    7.11 + *
    7.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
    7.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    7.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    7.15 + * details.
    7.16 + *
    7.17 + * You should have received a copy of the GNU General Public License along with
    7.18 + * this program. Look for COPYING file in the top folder. If not, see
    7.19 + * http://opensource.org/licenses/GPL-2.0.
    7.20 + */
    7.21 +package net.java.html.canvas;
    7.22 +
    7.23 +
    7.24 +
    7.25 +/**
    7.26 + *
    7.27 + * @author antonepple
    7.28 + */
    7.29 +public interface IImageData {
    7.30 +
    7.31 +    public double getHeight();
    7.32 +
    7.33 +    public double getWidth();
    7.34 +    
    7.35 +}
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/ILinearGradient.java	Tue May 21 16:07:59 2013 +0200
     8.3 @@ -0,0 +1,28 @@
     8.4 +/**
     8.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     8.6 + * <jaroslav.tulach@apidesign.org>
     8.7 + *
     8.8 + * This program is free software: you can redistribute it and/or modify it under
     8.9 + * the terms of the GNU General Public License as published by the Free Software
    8.10 + * Foundation, version 2 of the License.
    8.11 + *
    8.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
    8.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    8.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    8.15 + * details.
    8.16 + *
    8.17 + * You should have received a copy of the GNU General Public License along with
    8.18 + * this program. Look for COPYING file in the top folder. If not, see
    8.19 + * http://opensource.org/licenses/GPL-2.0.
    8.20 + */
    8.21 +package net.java.html.canvas;
    8.22 +
    8.23 +/**
    8.24 + *
    8.25 + * @author antonepple
    8.26 + */
    8.27 +public interface ILinearGradient {
    8.28 +
    8.29 +    void addColorStop(double position, String color);
    8.30 +    
    8.31 +}
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IPattern.java	Tue May 21 16:07:59 2013 +0200
     9.3 @@ -0,0 +1,26 @@
     9.4 +/**
     9.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     9.6 + * <jaroslav.tulach@apidesign.org>
     9.7 + *
     9.8 + * This program is free software: you can redistribute it and/or modify it under
     9.9 + * the terms of the GNU General Public License as published by the Free Software
    9.10 + * Foundation, version 2 of the License.
    9.11 + *
    9.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
    9.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    9.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    9.15 + * details.
    9.16 + *
    9.17 + * You should have received a copy of the GNU General Public License along with
    9.18 + * this program. Look for COPYING file in the top folder. If not, see
    9.19 + * http://opensource.org/licenses/GPL-2.0.
    9.20 + */
    9.21 +package net.java.html.canvas;
    9.22 +
    9.23 +/**
    9.24 + *
    9.25 + * @author antonepple
    9.26 + */
    9.27 +public interface IPattern {
    9.28 +    
    9.29 +}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/IRadialGradient.java	Tue May 21 16:07:59 2013 +0200
    10.3 @@ -0,0 +1,28 @@
    10.4 +/**
    10.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
    10.6 + * <jaroslav.tulach@apidesign.org>
    10.7 + *
    10.8 + * This program is free software: you can redistribute it and/or modify it under
    10.9 + * the terms of the GNU General Public License as published by the Free Software
   10.10 + * Foundation, version 2 of the License.
   10.11 + *
   10.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
   10.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   10.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
   10.15 + * details.
   10.16 + *
   10.17 + * You should have received a copy of the GNU General Public License along with
   10.18 + * this program. Look for COPYING file in the top folder. If not, see
   10.19 + * http://opensource.org/licenses/GPL-2.0.
   10.20 + */
   10.21 +package net.java.html.canvas;
   10.22 +
   10.23 +/**
   10.24 + *
   10.25 + * @author antonepple
   10.26 + */
   10.27 +public interface IRadialGradient {
   10.28 +
   10.29 +    void addColorStop(double position, String color);
   10.30 +    
   10.31 +}
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/ITextMetrics.java	Tue May 21 16:07:59 2013 +0200
    11.3 @@ -0,0 +1,30 @@
    11.4 +/**
    11.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
    11.6 + * <jaroslav.tulach@apidesign.org>
    11.7 + *
    11.8 + * This program is free software: you can redistribute it and/or modify it under
    11.9 + * the terms of the GNU General Public License as published by the Free Software
   11.10 + * Foundation, version 2 of the License.
   11.11 + *
   11.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
   11.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   11.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
   11.15 + * details.
   11.16 + *
   11.17 + * You should have received a copy of the GNU General Public License along with
   11.18 + * this program. Look for COPYING file in the top folder. If not, see
   11.19 + * http://opensource.org/licenses/GPL-2.0.
   11.20 + */
   11.21 +package net.java.html.canvas;
   11.22 +
   11.23 +/**
   11.24 + *
   11.25 + * @author antonepple
   11.26 + */
   11.27 +public interface ITextMetrics {
   11.28 +
   11.29 +    double getHeight();
   11.30 +
   11.31 +    double getWidth();
   11.32 +    
   11.33 +}
    12.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Image.java	Tue May 21 15:27:19 2013 +0200
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,32 +0,0 @@
    12.4 -/**
    12.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
    12.6 - * <jaroslav.tulach@apidesign.org>
    12.7 - *
    12.8 - * This program is free software: you can redistribute it and/or modify it under
    12.9 - * the terms of the GNU General Public License as published by the Free Software
   12.10 - * Foundation, version 2 of the License.
   12.11 - *
   12.12 - * This program is distributed in the hope that it will be useful, but WITHOUT
   12.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   12.14 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
   12.15 - * details.
   12.16 - *
   12.17 - * You should have received a copy of the GNU General Public License along with
   12.18 - * this program. Look for COPYING file in the top folder. If not, see
   12.19 - * http://opensource.org/licenses/GPL-2.0.
   12.20 - */
   12.21 -package net.java.html.canvas;
   12.22 -
   12.23 -/**
   12.24 - *
   12.25 - * @author antonepple
   12.26 - */
   12.27 -public interface Image {
   12.28 -    
   12.29 -    
   12.30 -    public int getHeight();
   12.31 -    
   12.32 -    public int getWidth();
   12.33 -    
   12.34 -    
   12.35 -}
    13.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/ImageData.java	Tue May 21 15:27:19 2013 +0200
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,32 +0,0 @@
    13.4 -/**
    13.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
    13.6 - * <jaroslav.tulach@apidesign.org>
    13.7 - *
    13.8 - * This program is free software: you can redistribute it and/or modify it under
    13.9 - * the terms of the GNU General Public License as published by the Free Software
   13.10 - * Foundation, version 2 of the License.
   13.11 - *
   13.12 - * This program is distributed in the hope that it will be useful, but WITHOUT
   13.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   13.14 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
   13.15 - * details.
   13.16 - *
   13.17 - * You should have received a copy of the GNU General Public License along with
   13.18 - * this program. Look for COPYING file in the top folder. If not, see
   13.19 - * http://opensource.org/licenses/GPL-2.0.
   13.20 - */
   13.21 -package net.java.html.canvas;
   13.22 -
   13.23 -
   13.24 -
   13.25 -/**
   13.26 - *
   13.27 - * @author antonepple
   13.28 - */
   13.29 -public interface ImageData {
   13.30 -
   13.31 -    public double getHeight();
   13.32 -
   13.33 -    public double getWidth();
   13.34 -    
   13.35 -}
    14.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/LinearGradient.java	Tue May 21 15:27:19 2013 +0200
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,28 +0,0 @@
    14.4 -/**
    14.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
    14.6 - * <jaroslav.tulach@apidesign.org>
    14.7 - *
    14.8 - * This program is free software: you can redistribute it and/or modify it under
    14.9 - * the terms of the GNU General Public License as published by the Free Software
   14.10 - * Foundation, version 2 of the License.
   14.11 - *
   14.12 - * This program is distributed in the hope that it will be useful, but WITHOUT
   14.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   14.14 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
   14.15 - * details.
   14.16 - *
   14.17 - * You should have received a copy of the GNU General Public License along with
   14.18 - * this program. Look for COPYING file in the top folder. If not, see
   14.19 - * http://opensource.org/licenses/GPL-2.0.
   14.20 - */
   14.21 -package net.java.html.canvas;
   14.22 -
   14.23 -/**
   14.24 - *
   14.25 - * @author antonepple
   14.26 - */
   14.27 -public interface LinearGradient {
   14.28 -
   14.29 -    void addColorStop(double position, String color);
   14.30 -    
   14.31 -}
    15.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Pattern.java	Tue May 21 15:27:19 2013 +0200
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,26 +0,0 @@
    15.4 -/**
    15.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
    15.6 - * <jaroslav.tulach@apidesign.org>
    15.7 - *
    15.8 - * This program is free software: you can redistribute it and/or modify it under
    15.9 - * the terms of the GNU General Public License as published by the Free Software
   15.10 - * Foundation, version 2 of the License.
   15.11 - *
   15.12 - * This program is distributed in the hope that it will be useful, but WITHOUT
   15.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   15.14 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
   15.15 - * details.
   15.16 - *
   15.17 - * You should have received a copy of the GNU General Public License along with
   15.18 - * this program. Look for COPYING file in the top folder. If not, see
   15.19 - * http://opensource.org/licenses/GPL-2.0.
   15.20 - */
   15.21 -package net.java.html.canvas;
   15.22 -
   15.23 -/**
   15.24 - *
   15.25 - * @author antonepple
   15.26 - */
   15.27 -public interface Pattern {
   15.28 -    
   15.29 -}
    16.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/RadialGradient.java	Tue May 21 15:27:19 2013 +0200
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,28 +0,0 @@
    16.4 -/**
    16.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
    16.6 - * <jaroslav.tulach@apidesign.org>
    16.7 - *
    16.8 - * This program is free software: you can redistribute it and/or modify it under
    16.9 - * the terms of the GNU General Public License as published by the Free Software
   16.10 - * Foundation, version 2 of the License.
   16.11 - *
   16.12 - * This program is distributed in the hope that it will be useful, but WITHOUT
   16.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   16.14 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
   16.15 - * details.
   16.16 - *
   16.17 - * You should have received a copy of the GNU General Public License along with
   16.18 - * this program. Look for COPYING file in the top folder. If not, see
   16.19 - * http://opensource.org/licenses/GPL-2.0.
   16.20 - */
   16.21 -package net.java.html.canvas;
   16.22 -
   16.23 -/**
   16.24 - *
   16.25 - * @author antonepple
   16.26 - */
   16.27 -public interface RadialGradient {
   16.28 -
   16.29 -    void addColorStop(double position, String color);
   16.30 -    
   16.31 -}
    17.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/TextMetrics.java	Tue May 21 15:27:19 2013 +0200
    17.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.3 @@ -1,30 +0,0 @@
    17.4 -/**
    17.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
    17.6 - * <jaroslav.tulach@apidesign.org>
    17.7 - *
    17.8 - * This program is free software: you can redistribute it and/or modify it under
    17.9 - * the terms of the GNU General Public License as published by the Free Software
   17.10 - * Foundation, version 2 of the License.
   17.11 - *
   17.12 - * This program is distributed in the hope that it will be useful, but WITHOUT
   17.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   17.14 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
   17.15 - * details.
   17.16 - *
   17.17 - * You should have received a copy of the GNU General Public License along with
   17.18 - * this program. Look for COPYING file in the top folder. If not, see
   17.19 - * http://opensource.org/licenses/GPL-2.0.
   17.20 - */
   17.21 -package net.java.html.canvas;
   17.22 -
   17.23 -/**
   17.24 - *
   17.25 - * @author antonepple
   17.26 - */
   17.27 -public interface TextMetrics {
   17.28 -
   17.29 -    double getHeight();
   17.30 -
   17.31 -    double getWidth();
   17.32 -    
   17.33 -}