]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/correlate/PhotoPreviewTableRow.java
Version 12, December 2010
[GpsPrune.git] / tim / prune / correlate / PhotoPreviewTableRow.java
diff --git a/tim/prune/correlate/PhotoPreviewTableRow.java b/tim/prune/correlate/PhotoPreviewTableRow.java
deleted file mode 100644 (file)
index 7095537..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-package tim.prune.correlate;
-
-import tim.prune.data.Distance;
-
-/**
- * Class to hold contents of a single row
- * in the photo preview table
- */
-public class PhotoPreviewTableRow extends PhotoSelectionTableRow
-{
-       private PointPair _pointPair = null;
-       private double _distance = 0.0;
-       private int _status = 0;
-       private boolean _correlate = false;
-
-
-       /**
-        * Constructor
-        * @param inPointPair point pair object
-        */
-       public PhotoPreviewTableRow(PointPair inPointPair)
-       {
-               super(inPointPair.getPhoto(), inPointPair.getMinSeconds());
-               _pointPair = inPointPair;
-               _distance = inPointPair.getMinRadians();
-               _status = 0;
-               _correlate = (inPointPair.getPhoto().getDataPoint() == null);
-       }
-
-       /**
-        * @param inUnits units to use
-        * @return distance in selected format
-        */
-       public double getDistance(Distance.Units inUnits)
-       {
-               return Distance.convertRadiansToDistance(_distance, inUnits);
-       }
-
-       /**
-        * @return point status
-        */
-       public int getStatus()
-       {
-               return _status;
-       }
-
-       /**
-        * @return point pair object
-        */
-       public PointPair getPointPair()
-       {
-               return _pointPair;
-       }
-
-       /**
-        * @return flag to set whether to correlate or not
-        */
-       public Boolean getCorrelateFlag()
-       {
-               return Boolean.valueOf(_correlate);
-       }
-
-       /**
-        * @param inFlag true to correlate, false to ignore
-        */
-       public void setCorrelateFlag(boolean inFlag)
-       {
-               _correlate = inFlag;
-       }
-}