{
annotationSpaceFillerHolder.setVisible(b);
annotationPanelHolder.setVisible(b);
+ } else {
+ annotationSpaceFillerHolder.setVisible(false);
+ annotationPanelHolder.setVisible(false);
}
validate();
repaint();
alabels.setSize(new Dimension(e.width, height));
annotationSpaceFillerHolder.setSize(new Dimension(e.width, height));
annotationPanelHolder.setSize(new Dimension(d.width, height));
- seqPanelHolder.setSize(d.width, seqandannot - height);
+ // seqPanelHolder.setSize(d.width, seqandannot - height);
seqPanel.seqCanvas
.setSize(d.width, seqPanel.seqCanvas.getSize().height);
int s = apvscroll.getValue();
s = 0;
}
apvscroll.setValues(s, height, 0, mheight);
- annotationPanel.setScrollOffset(apvscroll.getValue());
- alabels.setScrollOffset(apvscroll.getValue());
+ annotationPanel.setScrollOffset(apvscroll.getValue(), false);
+ alabels.setScrollOffset(apvscroll.getValue(), false);
}
public void setWrapAlignment(boolean wrap)
annotationPanelHolder.setVisible(true);
annotationSpaceFillerHolder.setVisible(true);
}
-
+
idSpaceFillerPanel1.setVisible(!wrap);
fontChanged(); // This is so that the scalePanel is resized correctly
validate();
+ sequenceHolderPanel.revalidate();
repaint();
}
if (evt == null || evt.getSource() == apvscroll)
{
- annotationPanel.setScrollOffset(apvscroll.getValue());
- alabels.setScrollOffset(apvscroll.getValue());
+ annotationPanel.setScrollOffset(apvscroll.getValue(), false);
+ alabels.setScrollOffset(apvscroll.getValue(), false);
// annotationPanel.image=null;
// alabels.image=null;
// alabels.repaint();
setScrollValues(av.getStartRes(), av.getStartSeq());
}
- alabels.repaint();
-
seqPanel.seqCanvas.repaint();
- scalePanel.repaint();
- annotationPanel.repaint();
idPanel.idCanvas.repaint();
+ if (!av.wrapAlignment)
+ {
+ if (av.showAnnotation)
+ {
+ alabels.repaint();
+ annotationPanel.repaint();
+ }
+ scalePanel.repaint();
+ }
+
}
protected Panel sequenceHolderPanel = new Panel();