import jalview.analysis.scoremodels.PIDModel;
import jalview.analysis.scoremodels.SimilarityParams;
-import jalview.bin.Jalview;
+import jalview.bin.Instance;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.AlignmentI;
import jalview.datamodel.AlignmentOrder;
public class AlignmentSorter
{
+ private AlignmentSorter()
+ {
+ // singleton
+ }
/**
* types of feature ordering: Sort by score : average score - or total score -
* over all features in region Sort by feature label text: (or if null -
public static AlignmentSorter getInstance()
{
- Jalview j = Jalview.getInstance();
+ Instance j = Instance.getInstance();
return (j.alignmentSorter == null
? j.alignmentSorter = new AlignmentSorter()
: j.alignmentSorter);