author | Anton Epple <toni.epple@eppleton.de> |
Thu, 26 Sep 2013 14:20:18 -0700 | |
branch | canvas |
changeset 1302 | e67363288df1 |
child 1303 | 3d62ad46d744 |
permissions | -rw-r--r-- |
toni@1302 | 1 |
/* |
toni@1302 | 2 |
* To change this template, choose Tools | Templates |
toni@1302 | 3 |
* and open the template in the editor. |
toni@1302 | 4 |
*/ |
toni@1302 | 5 |
package org.apidesign.html.canvas.impl; |
toni@1302 | 6 |
|
toni@1302 | 7 |
import net.java.html.canvas.GraphicsContext; |
toni@1302 | 8 |
import net.java.html.canvas.spi.GraphicsEnvironment; |
toni@1302 | 9 |
|
toni@1302 | 10 |
/** |
toni@1302 | 11 |
* |
toni@1302 | 12 |
* @author antonepple |
toni@1302 | 13 |
*/ |
toni@1302 | 14 |
public abstract class CnvsAccssr { |
toni@1302 | 15 |
|
toni@1302 | 16 |
static CnvsAccssr DEFAULT; |
toni@1302 | 17 |
|
toni@1302 | 18 |
public CnvsAccssr() { |
toni@1302 | 19 |
if (DEFAULT!=null) throw new IllegalStateException("Already initialized"); |
toni@1302 | 20 |
DEFAULT = this; |
toni@1302 | 21 |
} |
toni@1302 | 22 |
|
toni@1302 | 23 |
public static CnvsAccssr getDefault() { |
toni@1302 | 24 |
return DEFAULT; |
toni@1302 | 25 |
} |
toni@1302 | 26 |
|
toni@1302 | 27 |
public abstract GraphicsContext create(GraphicsEnvironment environment); |
toni@1302 | 28 |
} |