}
/**
- *
+ *
* @return alignment objects for all views
*/
AlignmentI[] getViewAlignments()
}
}
if (!newAlignment) {
-
+
// propagate alignment changed.
viewport.setEndSeq(alignment.getHeight());
if (annotationAdded)
buildSortByAnnotationScoresMenu();
}
viewport.firePropertyChange("alignment", null, alignment.getSequences());
-
+
} else {
AlignFrame af = new AlignFrame(alignment, DEFAULT_WIDTH, DEFAULT_HEIGHT);
String newtitle = new String("Copied sequences");
*/
public void buildSortByAnnotationScoresMenu()
{
+ if(viewport.alignment.getAlignmentAnnotation()==null)
+ {
+ return;
+ }
+
if (viewport.alignment.getAlignmentAnnotation().hashCode()!=_annotationScoreVectorHash)
{
sortByAnnotScore.removeAll();
}
sortByAnnotScore.setVisible(scoreSorts.size()>0);
scoreSorts.clear();
+
+ _annotationScoreVectorHash =
+ viewport.alignment.getAlignmentAnnotation().hashCode();
}
}