Ejemplo n.º 1
0
 @Override
 public void setModel(TrackMateModel model) {
   super.setModel(model);
   this.settings = model.getSettings();
   this.imp = settings.imp;
   this.calibration = settings.getCalibration();
 }
Ejemplo n.º 2
0
 @Override
 public void selectionChanged(final SelectionChangeEvent event) {
   // Highlight
   highlightEdges(selectionModel.getEdgeSelection());
   highlightSpots(selectionModel.getSpotSelection());
   // Center on last spot
   super.selectionChanged(event);
 }
Ejemplo n.º 3
0
 @Override
 public void setDisplaySettings(String key, Object value) {
   super.setDisplaySettings(key, value);
   // If we modified the feature coloring, then we recompute NOW the colors.
   if (key == TrackMateModelView.KEY_SPOT_COLOR_FEATURE) {
     spotOverlay.computeSpotColors();
   }
   if (key == TrackMateModelView.KEY_TRACK_COLOR_FEATURE) {
     trackOverlay.computeTrackColors();
   }
 }
Ejemplo n.º 4
0
 @Override
 public void setDisplaySettings(final String key, final Object value) {
   super.setDisplaySettings(key, value);
   // Treat change of radius
   if (key == KEY_SPOT_RADIUS_RATIO) {
     updateRadiuses();
   } else if (key == KEY_SPOT_COLORING) {
     updateSpotColors();
   } else if (key == KEY_TRACK_COLORING) {
     updateTrackColors();
   } else if (key == KEY_DISPLAY_SPOT_NAMES) {
     for (final int frame : blobs.keySet()) {
       blobs.get(frame).setShowLabels((Boolean) value);
     }
   } else if (key == KEY_SPOTS_VISIBLE) {
     spotContent.setVisible((Boolean) value);
   } else if (key == KEY_TRACKS_VISIBLE && null != trackContent) {
     trackContent.setVisible((Boolean) value);
   } else if (key == KEY_TRACK_DISPLAY_MODE && null != trackNode) {
     trackNode.setTrackDisplayMode((Integer) value);
   } else if (key == KEY_TRACK_DISPLAY_DEPTH && null != trackNode) {
     trackNode.setTrackDisplayDepth((Integer) value);
   }
 }