model.setBottomUnitWidth(getViewState().getBottomUnitWidth());
model.setRowHeight(((GanttTree2) tree).getTreeTable()
.getRowHeight());
model.setTopTimeUnit(getViewState().getTopTimeUnit());
model.setBottomTimeUnit(getViewState().getBottomTimeUnit());
VisibleNodesFilter visibleNodesFilter = new VisibleNodesFilter();
List visibleTasks = visibleNodesFilter.getVisibleNodes(tree
.getJTree(), getScrollBar(), getHeight(), tree
.getTreeTable().getRowHeight());
model.setVisibleTasks(visibleTasks);
//myChartModel.setExplicitlyHiddenTasks(tree.getHiddenTasks());
model.setVerticalOffset(getScrollBar() % tree.getTreeTable().getRowHeight());