1 package tim.prune.function;
4 import tim.prune.GenericFunction;
5 import tim.prune.data.DataPoint;
8 * Class to provide the function to duplicate
9 * the current point and add to the end of the track
11 public class DuplicatePoint extends GenericFunction
15 * @param inApp application object for callback
17 public DuplicatePoint(App inApp)
22 /** Get the name key */
23 public String getNameKey() {
24 return "function.duplicatepoint";
32 DataPoint point = _app.getTrackInfo().getCurrentPoint();
34 // Pass information back to App to complete function
35 _app.createPoint(point.clonePoint());