code: public void setPosition(int x,int y) {
  		int cx = (xoffset.getMin() + xoffset.getMax()) / 2;
  		int cy = (yoffset.getMin() + yoffset.getMax()) / 2;
  		
  		int dx = x - cx;
  		int dy = y - cy;
  		
  		xoffset.setMin(xoffset.getMin() + dx);
  		xoffset.setMax(xoffset.getMax() + dx);
  		yoffset.setMin(yoffset.getMin() + dy);
  		yoffset.setMax(yoffset.getMax() + dy);
  		
  		xoffset.fireUpdated(null);
  		yoffset.fireUpdated(null);
  	}
docs: Set the position of the emitter
  
  @param x The x position of the emitter
  @param y The y position of the emitter