Exemplo n.º 1
0
  @Override
  public void render() {
    if (DEBUG) System.out.println("[SpotDisplayer3D] Call to render().");

    updateRadiuses();
    updateSpotColors();
    spotContent.setVisible((Boolean) displaySettings.get(KEY_SPOTS_VISIBLE));
    if (null != trackContent) {
      trackContent.setVisible((Boolean) displaySettings.get(KEY_TRACKS_VISIBLE));
      trackNode.setTrackDisplayMode((Integer) displaySettings.get(KEY_TRACK_DISPLAY_MODE));
      trackNode.setTrackDisplayDepth((Integer) displaySettings.get(KEY_TRACK_DISPLAY_DEPTH));
      updateTrackColors();
      trackNode.refresh();
      universe.updateStartAndEndTime(blobs.firstKey(), blobs.lastKey());
      universe.updateTimelineGUI();
    }
  }
Exemplo n.º 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);
   }
 }