package tim.prune.undo; import tim.prune.I18nManager; import tim.prune.data.DataPoint; import tim.prune.data.Photo; import tim.prune.data.TrackInfo; /** * Operation to undo an auto-correlation of photos with points */ public class UndoCorrelatePhotos implements UndoOperation { private DataPoint[] _contents = null; private DataPoint[] _photoPoints = null; private int _numPhotosCorrelated = -1; /** * Constructor * @param inTrackInfo track information */ public UndoCorrelatePhotos(TrackInfo inTrackInfo) { // Copy track contents _contents = inTrackInfo.getTrack().cloneContents(); // Copy points associated with photos before correlation int numPhotos = inTrackInfo.getPhotoList().getNumPhotos(); _photoPoints = new DataPoint[numPhotos]; for (int i=0; i