public class GraphicsUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static GraphicsContext2D |
getOrCreate(GraphicsEnvironment env,
String id)
Use this to get A GraphicsContext2D to draw on.
|
public static GraphicsContext2D getOrCreate(GraphicsEnvironment env, String id)
GraphicsEnvironment and a String to identify
your Canvas.
In the HTML5 implementation, the GraphicsEnvironment
will look for a Canvas with that ID in your HTML (or add a new one to the page).env - the GraphicsEnvironmentid - used by the to identify the CanvasCopyright © 2018. All Rights Reserved.