}
/**
- * Get a list of unique annotation types for the alignment, optionally
- * restricted to sequence-specific annotations.
- */
- protected List<String> getAnnotationTypes(boolean sequenceSpecificOnly)
- {
- // TODO move this to an AlignmentUtils class or similar
- List<String> types = new ArrayList<String>();
- for (AlignmentAnnotation aa : alignPanel.getAlignment()
- .getAlignmentAnnotation())
- {
- if (sequenceSpecificOnly && aa.sequenceRef == null)
- {
- continue;
- }
- String type = aa.label;
- if (!types.contains(type))
- {
- types.add(type);
- }
- }
- return types;
- }
-
- /**
* Action on selection of menu option to Show or Hide all annotations.
*
* @param visibile