}
return mpos;
}
+ /**
+ * gets boundary in direction of mapping
+ * @param position in mapped reference frame
+ * @return int{start, end} positions in associated sequence (in direction of mapped word)
+ */
public int[] getWord(int mpos) {
if (map!=null) {
- int[] mp=map.shiftTo(mpos);
- if (mp!=null) {
- return new int[] {mp[0], mp[0]+mp[2]*(map.getFromRatio()-1)};
- }
+ return map.getToWord(mpos);
}
return null;
}