From: Jim Procter Date: Mon, 4 Apr 2016 15:13:21 +0000 (+0100) Subject: JAL-2001 drop isSelected(int) in favour of original ‘contains(int)’ method X-Git-Tag: Release_2_10_0~270^2^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e617de66cd1948c50a285e0973cc8a1455942f52;p=jalview.git JAL-2001 drop isSelected(int) in favour of original ‘contains(int)’ method --- 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); }