hideAllAnnotations_actionPerformed(true, false);
}
});
- SequenceAnnotationOrder sortAnnotationsBy = SequenceAnnotationOrder
- .valueOf(Cache.getDefault(Preferences.SORT_ANNOTATIONS,
- SequenceAnnotationOrder.NONE.name()));
sortAnnBySequence = new JCheckBoxMenuItem(
MessageManager.getString("label.sort_annotations_by_sequence"));
sortAnnByLabel = new JCheckBoxMenuItem(
public void actionPerformed(ActionEvent e)
{
setAnnotationSortOrder(SequenceAnnotationOrder.SEQUENCE_AND_LABEL);
- sortAnnotations();
+ sortAnnotations(false);
}
});
sortAnnByLabel.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
{
setAnnotationSortOrder(SequenceAnnotationOrder.LABEL_AND_SEQUENCE);
- sortAnnotations();
+ sortAnnotations(false);
}
});
colourTextMenuItem = new JCheckBoxMenuItem(
{
if (setShowAutoCalculatedAbove(showAutoFirst.isSelected()))
{
- sortAnnotations();
+ sortAnnotations(true);
}
}
});
{
if (setShowAutoCalculatedAbove(!showAutoLast.isSelected()))
{
- sortAnnotations();
+ sortAnnotations(true);
}
}
});
}
/**
- * Action on clicking sort annotations by type.
+ * Action on clicking sort annotations by type, or change position of
+ * autocalculated annotation
*
- * @param sortOrder
+ * @param autoCalcOnly
*/
- protected void sortAnnotations()
+ protected void sortAnnotations(boolean autoCalcOnly)
{
}