boolean markHighlightedColumns(boolean invert, boolean extendCurrent,
boolean toggle);
+ /**
+ *
+ * Add highlighted sequences to selected rows. Exclude highlighted sequences
+ * from selected rows. toggle inclusion or exclusion of highlighted sequences.
+ * or add/exclude/toggle for sequences not highlighted.
+ *
+ * @param invert
+ * - when true, sequences that are not highlighted are added/removed
+ * from selection
+ * @param extendCurrent
+ * - normally true , the current selected group is modified.
+ * Otherwise a new selection is created
+ * @param toggle
+ * - toggle selection status for highlighted/not highlighted sequence
+ * @return
+ */
+ boolean selectHighlightedSequences(boolean invert, boolean extendCurrent,
+ boolean toggle);
+
}
}
- /**
- *
- * Add highlighted sequences to selected rows. Exclude highlighted sequences
- * from selected rows. toggle inclusion or exclusion of highlighted sequences.
- * or add/exclude/toggle for sequences not highlighted.
- *
- * @param invert
- * - when true, sequences that are not highlighted are added/removed
- * from selection
- * @param extendCurrent
- * - normally true , the current selected group is modified.
- * Otherwise a new selection is created
- * @param toggle
- * - toggle selection status for highlighted/not highlighted sequence
- * @return
- */
+
+ @Override
public boolean selectHighlightedSequences(boolean invert,
boolean extendCurrent, boolean toggle)
{
toggleSel);
break;
}
+ case KeyEvent.VK_K:
+ {
+ boolean toggleSel = evt.isControlDown() || evt.isMetaDown();
+ boolean modifyExisting = true; // always modify, don't clear
+ // evt.isShiftDown();
+ boolean invertHighlighted = evt.isAltDown();
+ avc.selectHighlightedSequences(invertHighlighted, modifyExisting,
+ toggleSel);
+ break;
+ }
+
case KeyEvent.VK_PAGE_UP:
viewport.getRanges().pageUp();
break;