docs: @Pure
  	public int getRowFor(double y) {
  		final double yy = y - this.bounds.getMinY();
  		if (yy >= 0.)  {
  			final int idx = (int) (yy / getCellHeight());
  			assert idx >= 0;
  			if (idx < getRowCount()) {
  				return idx;
  			}
  			return getRowCount() - 1;
  		}
  		return 0;
  	}