JAL-1628 wrappers for common checks on ColumnSelection
[jalview.git] / src / jalview / datamodel / ColumnSelection.java
index f5f792c..97b7c67 100644 (file)
@@ -1267,6 +1267,24 @@ public class ColumnSelection
   }
 
   /**
+   * 
+   * @return true if there are columns marked
+   */
+  public boolean hasSelectedColumns()
+  {
+    return (selected != null && selected.size() > 0);
+  }
+
+  /**
+   * 
+   * @return true if there are columns hidden
+   */
+  public boolean hasHiddenColumns()
+  {
+    return hiddenColumns != null && hiddenColumns.size() > 0;
+  }
+
+  /**
    * mark the columns corresponding to gap characters as hidden in the column
    * selection
    *