X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2Ffunction%2Fdistance%2FFromTableModel.java;fp=src%2Ftim%2Fprune%2Ffunction%2Fdistance%2FFromTableModel.java;h=c88bfc472310c591b87fdbb2d7a4607e5680d45a;hp=0000000000000000000000000000000000000000;hb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;hpb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465 diff --git a/src/tim/prune/function/distance/FromTableModel.java b/src/tim/prune/function/distance/FromTableModel.java new file mode 100644 index 0000000..c88bfc4 --- /dev/null +++ b/src/tim/prune/function/distance/FromTableModel.java @@ -0,0 +1,36 @@ +package tim.prune.function.distance; + +import tim.prune.I18nManager; + +/** + * Class to hold table model for "From" list of distance function + */ +public class FromTableModel extends GenericTableModel +{ + /** Column heading */ + private static final String _colLabel = I18nManager.getText("dialog.distances.column.from"); + + /** + * @return column count + */ + public int getColumnCount() { + return 1; + } + + /** + * @param inRowIndex row index + * @param inColumnIndex column index + * @return cell value + */ + public Object getValueAt(int inRowIndex, int inColumnIndex) { + return getPointName(inRowIndex); + } + + /** + * @param inColumnIndex column index + * @return column name + */ + public String getColumnName(int inColumnIndex) { + return _colLabel; + } +}