javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsEnvironment.java
branchcanvas
changeset 1129 425c0c9ff88c
parent 1128 2dc980517b36
child 1130 6790eb381615
     1.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsEnvironment.java	Wed May 22 16:37:51 2013 +0200
     1.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/GraphicsEnvironment.java	Wed May 22 17:49:01 2013 +0200
     1.3 @@ -1,6 +1,19 @@
     1.4 -/*
     1.5 - * To change this template, choose Tools | Templates
     1.6 - * and open the template in the editor.
     1.7 +/**
     1.8 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     1.9 + * <jaroslav.tulach@apidesign.org>
    1.10 + *
    1.11 + * This program is free software: you can redistribute it and/or modify it under
    1.12 + * the terms of the GNU General Public License as published by the Free Software
    1.13 + * Foundation, version 2 of the License.
    1.14 + *
    1.15 + * This program is distributed in the hope that it will be useful, but WITHOUT
    1.16 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    1.17 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    1.18 + * details.
    1.19 + *
    1.20 + * You should have received a copy of the GNU General Public License along with
    1.21 + * this program. Look for COPYING file in the top folder. If not, see
    1.22 + * http://opensource.org/licenses/GPL-2.0.
    1.23   */
    1.24  package net.java.html.canvas;
    1.25  
    1.26 @@ -11,6 +24,7 @@
    1.27   * @author antonepple
    1.28   */
    1.29  public interface GraphicsEnvironment {
    1.30 +
    1.31      public void arc(double centerX,
    1.32              double centerY,
    1.33              double startAngle,
    1.34 @@ -76,7 +90,7 @@
    1.35  
    1.36      public String getFillStyle();
    1.37  
    1.38 -    public void setFillStyle(Pattern style);
    1.39 +    public void setFillStyle(Style style);
    1.40  
    1.41      public void setStrokeStyle(String style);
    1.42  
    1.43 @@ -161,9 +175,11 @@
    1.44      public Pattern createPattern(ImageData image, String repeat);
    1.45  
    1.46      public RadialGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
    1.47 -    
    1.48 +
    1.49 +    public void addColorStop(LinearGradient gradient, double position, String color);
    1.50 +
    1.51      public ImageData getImageForPath(String path);
    1.52 -    
    1.53 +
    1.54      public int getHeight();
    1.55  
    1.56      public int getWidth();
    1.57 @@ -171,5 +187,4 @@
    1.58      public void setHeight(int height);
    1.59  
    1.60      public void setWidth(int width);
    1.61 -    
    1.62  }