JAL-2349 allow PAE or other contact matrices to hold a coordinate mapping allowing...
[jalview.git] / src / jalview / datamodel / ContactListProviderI.java
index f027e01..a4e0b79 100644 (file)
@@ -1,5 +1,7 @@
 package jalview.datamodel;
 
+import jalview.renderer.ContactGeometry.contactInterval;
+
 public interface ContactListProviderI
 {
 
@@ -26,4 +28,15 @@ public interface ContactListProviderI
    */
   double getContactAt(int column);
 
+
+  /**
+   * Return positions in local reference corresponding to cStart and cEnd in matrix data
+   * @param cStart
+   * @param cEnd
+   * @return int[] { start, end (inclusive) for each contiguous segment}
+   */
+  default int[] getMappedPositionsFor(int cStart, int cEnd) {
+    return new int[] { cStart, cEnd};
+  }
+
 }