From e617de66cd1948c50a285e0973cc8a1455942f52 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 4 Apr 2016 16:13:21 +0100 Subject: [PATCH] =?utf8?q?JAL-2001=20drop=20isSelected(int)=20in=20favour=20?= =?utf8?q?of=20original=20=E2=80=98contains(int)=E2=80=99=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/datamodel/ColumnSelection.java | 7 +------ src/jalview/renderer/AnnotationRenderer.java | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/jalview/datamodel/ColumnSelection.java b/src/jalview/datamodel/ColumnSelection.java index c891485..c63b6cd 100644 --- a/src/jalview/datamodel/ColumnSelection.java +++ b/src/jalview/datamodel/ColumnSelection.java @@ -259,7 +259,7 @@ public class ColumnSelection * @param col * index to search for in column selection * - * @return true if Integer(col) is in selection. + * @return true if col is selected */ public boolean contains(int col) { @@ -1493,9 +1493,4 @@ public class ColumnSelection } while (count < annotations.length); return false; } - - public boolean isSelected(int column) - { - return selected.isSelected(column); - } } diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index 2d84289..75099c2 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -598,7 +598,7 @@ public class AnnotationRenderer if (columnSelection != null) { - if (columnSelection.isSelected(column)) + if (columnSelection.contains(column)) { g.fillRect(x * charWidth, y, charWidth, charHeight); } -- 1.7.10.2