toni@1303: /** toni@1303: * Back 2 Browser Bytecode Translator toni@1303: * Copyright (C) 2012 Jaroslav Tulach toni@1303: * toni@1303: * This program is free software: you can redistribute it and/or modify toni@1303: * it under the terms of the GNU General Public License as published by toni@1303: * the Free Software Foundation, version 2 of the License. toni@1303: * toni@1303: * This program is distributed in the hope that it will be useful, toni@1303: * but WITHOUT ANY WARRANTY; without even the implied warranty of toni@1303: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the toni@1303: * GNU General Public License for more details. toni@1303: * toni@1303: * You should have received a copy of the GNU General Public License toni@1303: * along with this program. Look for COPYING file in the top folder. toni@1303: * If not, see http://opensource.org/licenses/GPL-2.0. toni@1303: */ toni@1302: /* toni@1302: * To change this template, choose Tools | Templates toni@1302: * and open the template in the editor. toni@1302: */ toni@1302: package net.java.html.canvas.spi; toni@1302: toni@1302: import net.java.html.canvas.GraphicsContext; toni@1302: import org.apidesign.html.canvas.impl.CnvsAccssr; toni@1302: toni@1302: /** toni@1302: * toni@1302: * @author antonepple toni@1302: */ toni@1302: public class GraphicsUtils { toni@1302: toni@1302: private GraphicsUtils() { toni@1302: } toni@1302: toni@1302: public static GraphicsContext create(GraphicsEnvironment environment){ toni@1302: return CnvsAccssr.getDefault().create(environment); toni@1302: } toni@1302: toni@1302: toni@1302: }