private void renderLoads(List<Load> loads,int ypos){
  Load prevLoad=null;
  Load curLoad=null;
  List<Offset> offsets=getDefaultOffsets();
  String suffix="";
  for (int curIndex=1; curIndex < loads.size(); curIndex++) {
    curLoad=loads.get(curIndex);
    prevLoad=loads.get(curIndex - 1);
    if (prevLoad.load != 0) {
      renderLoads(prevLoad,curLoad,offsets,ypos,suffix);
      suffix="";
    }
 else     if (curLoad.load > 0) {
      suffix=".first";
    }
  }
}

private void renderLoads ( List < Load > loads , int ypos ) { Load prevLoad = null ; Load curLoad = null ; List < Offset > offsets = getDefaultOffsets ( ) ; String suffix = "" ; for ( int curIndex = 1 ; curIndex < loads . size ( ) ; curIndex ++ ) { curLoad = loads . get ( curIndex ) ; prevLoad = loads . get ( curIndex - 1 ) ; if ( prevLoad . load != 0 ) { renderLoads ( prevLoad , curLoad , offsets , ypos , suffix ) ; suffix = "" ; } else if ( curLoad . load > 0 ) { suffix = ".first" ; } } }
renders the list of loads in a single chart row preconditions : loads come from the same distribution and are ordered by their time offsets
