예제 #1
0
 /**
  * Adds the collection of figures to the display.
  *
  * @param l The collection of objects to add.
  */
 void addFigures(Collection l) {
   Iterator i = l.iterator();
   ROI roi;
   Iterator<ROIShape> j;
   while (i.hasNext()) {
     roi = (ROI) i.next();
     j = roi.getShapes().values().iterator();
     while (j.hasNext()) objectsTable.addROIShape(j.next());
   }
 }
예제 #2
0
 /** Rebuilds Tree */
 void rebuildTable() {
   TreeMap<Long, ROI> roiList = model.getROI();
   Iterator<ROI> iterator = roiList.values().iterator();
   ROI roi;
   TreeMap<Coord3D, ROIShape> shapeList;
   Iterator<ROIShape> shapeIterator;
   objectsTable.clear();
   while (iterator.hasNext()) {
     roi = iterator.next();
     shapeList = roi.getShapes();
     shapeIterator = shapeList.values().iterator();
     while (shapeIterator.hasNext()) objectsTable.addROIShape(shapeIterator.next());
   }
   objectsTable.collapseAll();
 }