]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/correlate/PhotoSelectionTableRow.java
Version 4, January 2008
[GpsPrune.git] / tim / prune / correlate / PhotoSelectionTableRow.java
1 package tim.prune.correlate;
2
3 import tim.prune.data.Photo;
4 import tim.prune.data.TimeDifference;
5
6 /**
7  * Class to hold contents of a single row
8  * in the photo selection table
9  */
10 public class PhotoSelectionTableRow
11 {
12         private Photo _photo = null;
13         private TimeDifference _timeDiff = null;
14
15         /**
16          * Constructor
17          * @param inPhoto Photo object
18          * @param inNumSecs number of seconds time difference as long
19          */
20         public PhotoSelectionTableRow(Photo inPhoto, long inNumSecs)
21         {
22                 _photo = inPhoto;
23                 _timeDiff = new TimeDifference(inNumSecs);
24         }
25
26         /**
27          * @return Photo object
28          */
29         public Photo getPhoto()
30         {
31                 return _photo;
32         }
33
34         /**
35          * @return time difference
36          */
37         public TimeDifference getTimeDiff()
38         {
39                 return _timeDiff;
40         }
41 }