1 package tim.prune.correlate;
3 import tim.prune.data.Distance;
6 * Class to hold the contents of a single row in the correlation preview table
8 public class MediaPreviewTableRow extends MediaSelectionTableRow
10 private PointMediaPair _pointPair = null;
11 private double _distance = 0.0;
12 private int _status = 0;
13 private boolean _correlate = false;
18 * @param inPointPair point pair object
20 public MediaPreviewTableRow(PointMediaPair inPointPair)
22 super(inPointPair.getMedia(), inPointPair.getMinSeconds());
23 _pointPair = inPointPair;
24 _distance = inPointPair.getMinRadians();
26 _correlate = (inPointPair.getMedia().getDataPoint() == null);
30 * @param inUnits units to use
31 * @return distance in selected format
33 public double getDistance(Distance.Units inUnits)
35 return Distance.convertRadiansToDistance(_distance, inUnits);
39 * @return point status
41 public int getStatus()
47 * @return point pair object
49 public PointMediaPair getPointPair()
55 * @return flag to set whether to correlate or not
57 public Boolean getCorrelateFlag()
59 return Boolean.valueOf(_correlate);
63 * @param inFlag true to correlate, false to ignore
65 public void setCorrelateFlag(boolean inFlag)