}
public void init(Project project, NodeModelCache cache,SpreadSheetFieldArray fieldArray,List<Integer> colWidth,int scale,boolean printGantt) {
this.project=project;
coord = new CoordinatesConverter(project);
if (scale!=-1) coord.getTimescaleManager().setCurrentScaleIndex(scale);
params=new SpreadSheetParamsImpl(fieldArray,colWidth,printGantt);
int rowHeight=project.getRowHeight(new TreeSet<Integer>());
params.setRowHeight(rowHeight);
params.setCache(cache);
params.setCoord(coord);