code: protected int findTotalOffset(ArrayList aligments, byte position) {
  		int total = 0;
  		for (Object aligment : aligments) {
  			HorizontalBandAlignment currentAlignment = (HorizontalBandAlignment) aligment;
  			int aux = 0;
  			for (AutoText autotext : getReport().getAutoTexts()) {
  				if (autotext.getPosition() == position && currentAlignment.equals(autotext.getAlignment())) {
  					aux += autotext.getHeight();
  				}
  			}
  			if (aux > total)
  				total = aux;
  		}
  		return total;
  	}
docs: Finds the highest sum of height for each possible alignment (left, center, right)
  @param aligments
  @return