Ejemplo n.º 1
0
 public void toggleShowMeasurements() {
   if (showMeasurements.isSelected()) {
     measurements.setStructures(currentNucId, currentStructureIdx);
     measurements.setObjects(list.getSelectedValues());
     this.container.add(measurements);
   } else this.container.remove(measurements);
   core.refreshDisplay();
 }
Ejemplo n.º 2
0
 public void setStructures(ObjectId id, Object[] selectedChannels) {
   // System.out.println("Set Structures: cell"+id+ " sel channels
   // length"+selectedChannels.length);
   this.currentNucId = id;
   this.currentChannels = new ObjectStructure[selectedChannels.length];
   currentStructureIdx = new int[selectedChannels.length];
   for (int i = 0; i < selectedChannels.length; i++) {
     currentChannels[i] = (ObjectStructure) selectedChannels[i];
     currentStructureIdx[i] = currentChannels[i].getIdx();
   }
   setSortKeys();
   populateObjects();
   if (showMeasurements.isSelected()) {
     measurements.setStructures(id, currentStructureIdx);
     measurements.setObjects(list.getSelectedValues());
   }
 }