JAL-4033 TODO re highlighting current column selection
authorJim Procter <j.procter@dundee.ac.uk>
Fri, 24 Jun 2022 16:23:17 +0000 (17:23 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Fri, 24 Jun 2022 16:23:17 +0000 (17:23 +0100)
src/jalview/renderer/ContactMapRenderer.java

index c4f308e..7a052da 100644 (file)
@@ -50,6 +50,12 @@ public class ContactMapRenderer implements AnnotationRowRendererI
       {
         column = hiddenColumns.visibleToAbsoluteColumn(column);
       }
       {
         column = hiddenColumns.visibleToAbsoluteColumn(column);
       }
+      // // TODO: highlight columns selected
+      // boolean colsel = false;
+      // if (columnSelection != null)
+      // {
+      // colsel = columnSelection.contains(column);
+      // }
 
       if (column > aaMax)
       {
 
       if (column > aaMax)
       {
@@ -103,6 +109,13 @@ public class ContactMapRenderer implements AnnotationRowRendererI
         // also need a 'getMaxPosForRange(start,end)' to accurately render
         Color col = getColorForRange(min, max, contacts, cstart, cend);
 
         // also need a 'getMaxPosForRange(start,end)' to accurately render
         Color col = getColorForRange(min, max, contacts, cstart, cend);
 
+        // TODO: show selected region
+        // if (colsel || columnSelection!=null &&
+        // columnSelection.intersects(cstart,cend))
+        // {
+        // g.setColor(col.brighter());
+        // }
+        // else
         {
           g.setColor(col);
         }
         {
           g.setColor(col);
         }