small refactoring (back to drawXXX instead of paintXXX) canvas
authorAnton Epple <toni.epple@eppleton.de>
Tue, 28 May 2013 08:50:06 +0200
branchcanvas
changeset 11606447c2031f1b
parent 1159 aa00b27aeb75
child 1262 bbc756ef9a73
small refactoring (back to drawXXX instead of paintXXX)
javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java
     1.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java	Mon May 27 15:26:43 2013 +0200
     1.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsContext.java	Tue May 28 08:50:06 2013 +0200
     1.3 @@ -137,17 +137,17 @@
     1.4          graphicsEnvironmentImpl.scale(x, y);
     1.5      }
     1.6  
     1.7 -    public void paintImage(Image image, double x, double y){
     1.8 +    public void drawImage(Image image, double x, double y){
     1.9          Object nativeImage = graphicsEnvironmentImpl.drawImage(image, x, y, image.getCached());
    1.10          image.cache(nativeImage);
    1.11      }
    1.12  
    1.13 -    public void paintImage(Image image, double x, double y, double width, double height){
    1.14 +    public void drawImage(Image image, double x, double y, double width, double height){
    1.15          Object nativeImage = graphicsEnvironmentImpl.drawImage(image, x, y, width, height, image.getCached());
    1.16          image.cache(nativeImage);
    1.17      }
    1.18  
    1.19 -    public void paintImage(Image image, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height){
    1.20 +    public void drawImage(Image image, double sx, double sy, double sWidth, double sHeight, double x, double y, double width, double height){
    1.21          Object nativeImage = graphicsEnvironmentImpl.drawImage(image, sx, sy, sWidth, sHeight, x, y, width, height, image.getCached());
    1.22          image.cache(nativeImage);
    1.23      }
    1.24 @@ -282,11 +282,11 @@
    1.25          return graphicsEnvironmentImpl.getPixelMap(x, y, width, height);
    1.26      }
    1.27  
    1.28 -    public void paintPixelMap(ImageData pixelMap, double x, double y){
    1.29 +    public void drawPixelMap(ImageData pixelMap, double x, double y){
    1.30          graphicsEnvironmentImpl.putPixelMap(pixelMap, x, y);
    1.31      }
    1.32  
    1.33 -    public void paintPixelMap(ImageData pixelMap, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight){
    1.34 +    public void drawPixelMap(ImageData pixelMap, double x, double y, double dirtyx, double dirtyy, double dirtywidth, double dirtyheight){
    1.35          graphicsEnvironmentImpl.putPixelMap(pixelMap, x, y, dirtyx, dirtyy, dirtywidth, dirtyheight);
    1.36      }
    1.37