From: Jim Procter Date: Fri, 24 Jun 2022 16:23:17 +0000 (+0100) Subject: JAL-4033 TODO re highlighting current column selection X-Git-Tag: Release_2_11_4_0~555 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b4940c3adf6345861921c7abdf948e0a0c9beb61;p=jalview.git JAL-4033 TODO re highlighting current column selection --- diff --git a/src/jalview/renderer/ContactMapRenderer.java b/src/jalview/renderer/ContactMapRenderer.java index c4f308e..7a052da 100644 --- a/src/jalview/renderer/ContactMapRenderer.java +++ b/src/jalview/renderer/ContactMapRenderer.java @@ -50,6 +50,12 @@ public class ContactMapRenderer implements AnnotationRowRendererI { column = hiddenColumns.visibleToAbsoluteColumn(column); } + // // TODO: highlight columns selected + // boolean colsel = false; + // if (columnSelection != null) + // { + // colsel = columnSelection.contains(column); + // } 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); + // TODO: show selected region + // if (colsel || columnSelection!=null && + // columnSelection.intersects(cstart,cend)) + // { + // g.setColor(col.brighter()); + // } + // else { g.setColor(col); }