int adjustIconOffset(int offset){
  maxIconOffset=Math.max(maxIconOffset,offset);
  return maxIconOffset;
}

int adjustIconOffset ( int offset ) { maxIconOffset = Math . max ( maxIconOffset , offset ) ; return maxIconOffset ; }
adjusts the icon offset needed to align icons horizontally
