private void buildTasksLoadsRectangles(List<Load> partition,int ypos){
  List<Offset> offsets=getDefaultOffsets();
  Iterator<Load> loads=partition.iterator();
  while (loads.hasNext()) {
    final Load nextLoad=loads.next();
    final Date nextStart=nextLoad.startDate;
    final Date nextEnd=nextLoad.endDate;
    final Rectangle nextRect=createRectangle(offsets,nextStart,nextEnd,ypos);
    if (nextRect == null) {
      continue;
    }
    String style;
    if (nextLoad.load < 100f) {
      style="load.underload";
    }
 else     if (nextLoad.load > 100f) {
      style="load.overload";
    }
 else {
      style="load.normal";
    }
    style+=".first.last";
    nextRect.setStyle(style);
    nextRect.setModelObject(new ResourceLoad(nextLoad.load));
    createLoadText(nextRect,nextLoad);
  }
}

private void buildTasksLoadsRectangles ( List < Load > partition , int ypos ) { List < Offset > offsets = getDefaultOffsets ( ) ; Iterator < Load > loads = partition . iterator ( ) ; while ( loads . hasNext ( ) ) { final Load nextLoad = loads . next ( ) ; final Date nextStart = nextLoad . startDate ; final Date nextEnd = nextLoad . endDate ; final Rectangle nextRect = createRectangle ( offsets , nextStart , nextEnd , ypos ) ; if ( nextRect == null ) { continue ; } String style ; if ( nextLoad . load < 100f ) { style = "load.underload" ; } else if ( nextLoad . load > 100f ) { style = "load.overload" ; } else { style = "load.normal" ; } style += ".first.last" ; nextRect . setStyle ( style ) ; nextRect . setModelObject ( new ResourceLoad ( nextLoad . load ) ) ; createLoadText ( nextRect , nextLoad ) ; } }
renders a list of loads in a single chart row precondition : loads belong to the same pair ( resource , task ) and are ordered by their time values
