From b4940c3adf6345861921c7abdf948e0a0c9beb61 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 24 Jun 2022 17:23:17 +0100 Subject: [PATCH] JAL-4033 TODO re highlighting current column selection --- src/jalview/renderer/ContactMapRenderer.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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); } -- 1.7.10.2