JAL-4134 allow tree groups to be stored/recovered on contact matrix for groupwise...
[jalview.git] / src / jalview / datamodel / ContactMatrixI.java
index 2367414..4e2076d 100644 (file)
@@ -1,5 +1,7 @@
 package jalview.datamodel;
 
+import java.util.BitSet;
+
 public interface ContactMatrixI
 {
 
@@ -25,5 +27,14 @@ public interface ContactMatrixI
 
   int getWidth();
   int getHeight();
+  
+  default boolean hasGroups() {
+    return false;
+  }
+  default BitSet getGroupsFor(int column) {
+    BitSet colbitset  = new BitSet();
+    colbitset.set(column);
+    return colbitset;
+  }
 
 }