code: float[] getEventWidth(float xPos) {
  		int n = 0;
  		for (int k = 0; k < cells.length; ++k) {
  			if (cells[k] != null)
  				++n;
  		}
  		float width[] = new float[n + 1];
  		n = 0;
  		width[n++] = xPos;
  		for (int k = 0; k < cells.length; ++k) {
  			if (cells[k] != null) {
  				width[n] = width[n - 1] + cells[k].getWidth();
  				++n;
  			}
  		}
  		return width;
  	}
docs: end add