}
return calendarFormat;
}
public void paintNonWorkingDays(Graphics2D g2,Rectangle bounds){
BarFormat calFormat=getCalendarFormat();
if (calFormat==null) return;
//non working days
Color oldColor=g2.getColor();
Paint oldPaint=g2.getPaint();
CoordinatesConverter coord=((GanttParams)graphInfo).getCoord();
Project project=coord.getProject();
WorkingCalendar wc=(WorkingCalendar)project.getWorkCalendar();
if (coord.getTimescaleManager().isShowWholeDays()){
boolean useScale2=coord.getTimescaleManager().getCurrentScaleIndex()==0; //valid only for current time scales
TimeIterator i=coord.getTimeIterator(bounds.getX(), bounds.getMaxX(),useScale2);
long startNonworking=-1L,endNonWorking=-1L;
Calendar cal=DateTime.calendarInstance();
PredefinedPaint paint=(PredefinedPaint)calFormat.getMiddle().getPaint();//new PredefinedPaint(PredefinedPaint.DOT_LINE,Colors.VERY_LIGHT_GRAY,Color.WHITE);
paint.applyPaint(g2, useTextures());
while (i.hasNext()){
TimeInterval interval=i.next();
long s=interval.getStart();
if (CalendarService.getInstance().getDay(wc, s).isWorking()){