Added GraphicsEnvironment Service canvas
authortoni.epple@eppleton.de
Fri, 17 May 2013 14:09:38 +0200
branchcanvas
changeset 1120b88c003d73e4
parent 1119 73041c26cf4d
child 1121 dbc985f7226e
Added GraphicsEnvironment Service
javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/HTML5GraphicsEnvironment.java
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/HTML5GraphicsEnvironment.java	Fri May 17 14:09:38 2013 +0200
     1.3 @@ -0,0 +1,56 @@
     1.4 +/**
     1.5 + * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
     1.6 + * <jaroslav.tulach@apidesign.org>
     1.7 + *
     1.8 + * This program is free software: you can redistribute it and/or modify it under
     1.9 + * the terms of the GNU General Public License as published by the Free Software
    1.10 + * Foundation, version 2 of the License.
    1.11 + *
    1.12 + * This program is distributed in the hope that it will be useful, but WITHOUT
    1.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    1.14 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    1.15 + * details.
    1.16 + *
    1.17 + * You should have received a copy of the GNU General Public License along with
    1.18 + * this program. Look for COPYING file in the top folder. If not, see
    1.19 + * http://opensource.org/licenses/GPL-2.0.
    1.20 + */
    1.21 +package org.apidesign.bck2brwsr.htmlpage.api;
    1.22 +
    1.23 +import net.java.html.canvas.GraphicsEnvironment;
    1.24 +import net.java.html.canvas.Image;
    1.25 +import net.java.html.canvas.LinearGradient;
    1.26 +import net.java.html.canvas.Pattern;
    1.27 +import net.java.html.canvas.RadialGradient;
    1.28 +import net.java.html.canvas.TextMetrics;
    1.29 +import org.openide.util.lookup.ServiceProvider;
    1.30 +
    1.31 +@ServiceProvider(service=GraphicsEnvironment.class)
    1.32 +public class HTML5GraphicsEnvironment extends GraphicsEnvironment{
    1.33 +
    1.34 +    @Override
    1.35 +    public Image getImageForPath(String path) {
    1.36 +        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    1.37 +    }
    1.38 +
    1.39 +    @Override
    1.40 +    public LinearGradient createLinearGradient() {
    1.41 +        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    1.42 +    }
    1.43 +
    1.44 +    @Override
    1.45 +    public Pattern createPattern() {
    1.46 +        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    1.47 +    }
    1.48 +
    1.49 +    @Override
    1.50 +    public RadialGradient createRadialGradient() {
    1.51 +        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    1.52 +    }
    1.53 +
    1.54 +    @Override
    1.55 +    public TextMetrics createTextMetrics() {
    1.56 +        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    1.57 +    }
    1.58 +    
    1.59 +}