boolean fastPaint = false;\r
java.util.Vector searchResults;\r
FontMetrics fm;\r
+ AnnotationLabels labels = null;\r
+ AnnotationPanel ap;\r
\r
/**\r
* Creates a new IdCanvas object.\r
maxwidth = av.getColumnSelection().findColumnPosition(maxwidth) - 1;\r
\r
int annotationHeight = 0;\r
- AnnotationLabels labels = null;\r
+\r
\r
if(av.showAnnotation)\r
{\r
- AnnotationPanel ap = new AnnotationPanel(av);\r
+ if (ap == null)\r
+ ap = new AnnotationPanel(av);\r
+\r
annotationHeight = ap.adjustPanelHeight();\r
- labels = new AnnotationLabels(av);\r
+ if (labels == null)\r
+ labels = new AnnotationLabels(av);\r
}\r
\r
int hgap = av.charHeight;\r