JAL-2001 drop isSelected(int) in favour of original ‘contains(int)’ method
authorJim Procter <jprocter@issues.jalview.org>
Mon, 4 Apr 2016 15:13:21 +0000 (16:13 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 4 Apr 2016 15:14:24 +0000 (16:14 +0100)
src/jalview/datamodel/ColumnSelection.java
src/jalview/renderer/AnnotationRenderer.java

index c891485..c63b6cd 100644 (file)
@@ -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);
-  }
 }
index 2d84289..75099c2 100644 (file)
@@ -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);
                 }