JAL-4134 support recovery of mapped positions for raw matrix column index in Mappable...
[jalview.git] / src / jalview / datamodel / ContactListProviderI.java
index f027e01..51f3126 100644 (file)
@@ -1,5 +1,7 @@
 package jalview.datamodel;
 
+import java.awt.Color;
+
 public interface ContactListProviderI
 {
 
@@ -26,4 +28,19 @@ public interface ContactListProviderI
    */
   double getContactAt(int column);
 
+
+  /**
+   * Return positions in local reference corresponding to cStart and cEnd in matrix data. Positions are base 1 column indices for sequence associated matrices.
+   * @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};
+  }
+
+  default Color getColourForGroup() {
+    return null;
+  }
+
 }