public void addSubpath(Subpath subpath){
  subpaths.add(subpath);
  currentPoint=subpath.getLastPoint();
}

public void addSubpath ( Subpath subpath ) { subpaths . add ( subpath ) ; currentPoint = subpath . getLastPoint ( ) ; }
adds the subpath to this path .
