This is an implementation of canvas API via implementing GraphicsEnvironment. Get A GraphicsContext2D to draw on like this:
GraphicsContext2D gc = HTML5Graphics.getOrCreate("canvas");