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 org.apidesign.html.canvas.impl; toni@1302: toni@1302: import net.java.html.canvas.GraphicsContext; toni@1302: import net.java.html.canvas.spi.GraphicsEnvironment; toni@1302: toni@1302: /** toni@1308: * toni@1302: * @author antonepple toni@1302: */ toni@1302: public abstract class CnvsAccssr { toni@1302: toni@1302: static CnvsAccssr DEFAULT; toni@1302: toni@1302: public CnvsAccssr() { toni@1302: if (DEFAULT!=null) throw new IllegalStateException("Already initialized"); toni@1302: DEFAULT = this; toni@1302: } toni@1302: toni@1302: public static CnvsAccssr getDefault() { toni@1302: return DEFAULT; toni@1302: } toni@1302: toni@1302: public abstract GraphicsContext create(GraphicsEnvironment environment); toni@1302: }