question: 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 ) ; } }
target:  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