/** * Sets the world drawn by this view. * Then repaints this view. * @param world the world. */ public void setWorld(World world) { if (_world!=null) _world.removeView(this); _world = world; if (_world!=null) _world.addView(this); updateTransforms(); repaint(); }