GUI and Drawing class for HTML5 canvas using Java