コード例 #1
0
  private Content makeTrackContent() {
    // Prepare tracks instant
    trackNode = new TrackDisplayNode(model);
    universe.addTimelapseListener(trackNode);

    // Pass tracks instant to all instants
    final TreeMap<Integer, ContentInstant> instants = new TreeMap<Integer, ContentInstant>();
    final ContentInstant trackCI = new ContentInstant("Tracks_all_frames");
    trackCI.display(trackNode);
    instants.put(0, trackCI);
    final Content tc = new Content(TRACK_CONTENT_NAME, instants);
    tc.setShowAllTimepoints(true);
    tc.showCoordinateSystem(false);
    return tc;
  }