git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e2490e
)
note to callers of adjustPanelHeight
author
jprocter
<Jim Procter>
Mon, 22 Mar 2010 17:16:30 +0000
(17:16 +0000)
committer
jprocter
<Jim Procter>
Mon, 22 Mar 2010 17:16:30 +0000
(17:16 +0000)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
42ca1b6
..
350cf65
100755
(executable)
--- a/
src/jalview/gui/AnnotationPanel.java
+++ b/
src/jalview/gui/AnnotationPanel.java
@@
-126,7
+126,10
@@
public class AnnotationPanel extends JPanel implements MouseListener,
}
/**
- * DOCUMENT ME!
+ * Calculates the height of the annotation displayed in the annotation panel.
+ * Callers should normally call the ap.adjustAnnotationHeight method to ensure all
+ * annotation associated components are updated correctly.
+ *
*/
public int adjustPanelHeight()
{
@@
-174,6
+177,7
@@
public class AnnotationPanel extends JPanel implements MouseListener,
}
this.setPreferredSize(new Dimension(1, height));
+ ap.alabels.validate();
return height;
}