+ int height = calcPanelHeight();
+ this.setSize(new Dimension(getSize().width, height));
+ if (repaint)
+ {
+ repaint();
+ }
+ return height;
+ }
+ /**
+ * calculate the height for visible annotation, revalidating bounds where necessary
+ * ABSTRACT GUI METHOD
+ * @return total height of annotation
+ */
+ public int calcPanelHeight()
+ {