* @return Returns an object that exposes an API for drawing on the canvas,
* or null if the given context ID is not supported
*/
public Object jsxFunction_getContext(final String contextId) {
if (contextId.equals("2d")) {
final CanvasRenderingContext2D context = new CanvasRenderingContext2D();
context.setParentScope(getParentScope());
context.setPrototype(getPrototype(context.getClass()));
return context;
}
return null;
}