JAL-629 Tidy up tests and replaced methods before merge to develop
[jalview.git] / src / jalview / datamodel / ContactMatrixI.java
index 9eabb10..3510ed1 100644 (file)
@@ -1,5 +1,6 @@
 package jalview.datamodel;
 
+import java.awt.Color;
 import java.util.Arrays;
 import java.util.BitSet;
 import java.util.List;
@@ -22,12 +23,15 @@ public interface ContactMatrixI
   String getAnnotLabel();
 
   /**
-   * string indicating how the contactMatrix should be rendered - stored in calcId
-   * @return 
+   * string indicating how the contactMatrix should be rendered - stored in
+   * calcId
+   * 
+   * @return
    */
   String getType();
 
   int getWidth();
+
   int getHeight();
   
   default boolean hasGroups() {
@@ -66,4 +70,10 @@ public interface ContactMatrixI
   default double getCutHeight() {
     return 0;
   }
+
+  void updateGroups(List<BitSet> colGroups);
+
+  void setColorForGroup(BitSet bs, Color color);
+
+  default Color getColourForGroup(BitSet bs) { return Color.white;};
 }