Пример #1
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();
   }
 }
Пример #2
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);
   }
 }