{
boolean showForAlignment = showAlignmentAnnotations.getState();
boolean showForSequences = showSequenceAnnotations.getState();
- for (AlignmentAnnotation aa : alignPanel.getAlignment()
+ if (alignPanel.getAlignment().getAlignmentAnnotation() != null)
+ {
+ for (AlignmentAnnotation aa : alignPanel.getAlignment()
.getAlignmentAnnotation())
{
boolean visible = (aa.sequenceRef == null ? showForAlignment
: showForSequences);
aa.visible = visible;
+ }
}
alignPanel.validateAnnotationDimensions(true);
validate();
}
+ @Override
public void changeColour(ColourSchemeI cs)
{
this.add(statusBar, BorderLayout.SOUTH);
}
+ @Override
public void setStatus(String string)
{
statusBar.setText(string);