X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;ds=sidebyside;f=tim%2Fprune%2Fcorrelate%2FPhotoSelectionTableRow.java;fp=tim%2Fprune%2Fcorrelate%2FPhotoSelectionTableRow.java;h=e818bbe8a1726f019d4af453af64dfb112c5aa9a;hb=da0b1f449260a0b4a94318006382a9039726ef3e;hp=0000000000000000000000000000000000000000;hpb=5625a1abadb5f2ca5f017fe7dbda1d5141cb637b;p=GpsPrune.git diff --git a/tim/prune/correlate/PhotoSelectionTableRow.java b/tim/prune/correlate/PhotoSelectionTableRow.java new file mode 100644 index 0000000..e818bbe --- /dev/null +++ b/tim/prune/correlate/PhotoSelectionTableRow.java @@ -0,0 +1,41 @@ +package tim.prune.correlate; + +import tim.prune.data.Photo; +import tim.prune.data.TimeDifference; + +/** + * Class to hold contents of a single row + * in the photo selection table + */ +public class PhotoSelectionTableRow +{ + private Photo _photo = null; + private TimeDifference _timeDiff = null; + + /** + * Constructor + * @param inPhoto Photo object + * @param inNumSecs number of seconds time difference as long + */ + public PhotoSelectionTableRow(Photo inPhoto, long inNumSecs) + { + _photo = inPhoto; + _timeDiff = new TimeDifference(inNumSecs); + } + + /** + * @return Photo object + */ + public Photo getPhoto() + { + return _photo; + } + + /** + * @return time difference + */ + public TimeDifference getTimeDiff() + { + return _timeDiff; + } +}