]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/function/distance/FromTableModel.java
Version 7, February 2009
[GpsPrune.git] / tim / prune / function / distance / FromTableModel.java
1 package tim.prune.function.distance;
2
3 import tim.prune.I18nManager;
4
5 /**
6  * Class to hold table model for "From" list of distance function
7  */
8 public class FromTableModel extends GenericTableModel
9 {
10         /** Column heading */
11         private static final String _colLabel = I18nManager.getText("dialog.distances.column.from");
12
13         /**
14          * @return column count
15          */
16         public int getColumnCount() {
17                 return 1;
18         }
19
20         /**
21          * @param inRowIndex row index
22          * @param inColumnIndex column index
23          * @return cell value
24          */
25         public Object getValueAt(int inRowIndex, int inColumnIndex) {
26                 return getPointName(inRowIndex);
27         }
28
29         /**
30          * @param inColumnIndex column index
31          * @return column name
32          */
33         public String getColumnName(int inColumnIndex) {
34                 return _colLabel;
35         }
36 }