Logo Search packages:      
Sourcecode: jalview version File versions

void jalview::gui::AlignmentPanel::validateAnnotationDimensions ( boolean  adjustPanelHeight ) [inline, protected]

calculate the annotation dimensions and refresh slider values accordingly. need to do repaints/notifys afterwards.

Definition at line 405 of file AlignmentPanel.java.

References jalview::gui::AnnotationPanel::adjustPanelHeight(), and alignFrame.

Referenced by jalview::gui::AnnotationLabels::actionPerformed(), and adjustAnnotationHeight().

    int height = annotationPanel.adjustPanelHeight();
    if (hscroll.isVisible())
      height += hscroll.getPreferredSize().height;
    if (height > alignFrame.getHeight() / 2)
      height = alignFrame.getHeight() / 2;
    if (!adjustPanelHeight)
      // maintain same window layout whilst updating sliders
    annotationScroller.setPreferredSize(new Dimension(annotationScroller
            .getWidth(), height));

    annotationSpaceFillerHolder.setPreferredSize(new Dimension(
            annotationSpaceFillerHolder.getWidth(), height));
    annotationScroller.validate();// repaint();

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index