Role role = (Role) roleList.get(new Integer(i+1));
sb.append(getRoleInformationCell(role, instance));
Vector<GraphActivity> graphXListTemp = new Vector<GraphActivity>();
for (int j = 0; j < graphList.size(); j++) {
SwimLanePoint sp = graphList.get(j).getSLPoint();
if (sp.pointX == i + 1) {
graphXListTemp.add(graphList.get(j));
}
}
graphXListTemp = OrderByPointY(graphXListTemp);
preY = 0;
sb.append("<td valign='middle'>");
for (int j=0; j < graphXListTemp.size(); j++) {
SwimLanePoint sp = graphXListTemp.get(j).getSLPoint();
if(preY >= sp.pointY) continue;
Vector<GraphActivity> graphXYListTemp = new Vector<GraphActivity>();
for (int k=0; k < graphXListTemp.size(); k++) {
SwimLanePoint sp2 = ((GraphActivity) graphXListTemp.get(k)).getSLPoint();
if (sp.pointY == sp2.pointY) {
graphXYListTemp.add(graphXListTemp.get(k));
}
}