- // draw annotation - need to offset for current scroll position
- int offset = -alabels.scrollOffset;
- pg.translate(0, offset);
- pg.translate(-idWidth - 3, (endSeq - startSeq) * av.charHeight + 3);
- alabels.drawComponent(pg, idWidth);
- pg.translate(idWidth + 3, 0);
- annotationPanel.renderer.drawComponent(annotationPanel, av,
- pg, -1, startRes, endRes + 1);
- pg.translate(0, -offset);
+ // draw annotation label - need to offset for current scroll position
+ int offset = -getAlabels().getScrollOffset();
+ pg[G0].translate(0, offset);
+ pg[G0].translate(-idWidth - 3,
+ (endSeq - startSeq) * av.getCharHeight() + 3);
+ getAlabels().drawComponent(pg[G0], idWidth);
+ pg[G0].translate(idWidth + 3, 0);
+ pg[G0].translate(0, -offset);
+ if (isMultiGraphics)
+ {
+ // draw annotation - need to offset for current scroll position
+ // pg[G1].translate(0, offset);
+ pg[G1].translate(-idWidth - 3,
+ (endSeq - startSeq) * av.getCharHeight() + 3);
+ pg[G1].translate(idWidth + 3, 0);
+ getAnnotationPanel().renderer.drawComponent(getAnnotationPanel(),
+ av, pg[G1], -1, startRes, endRes + 1);
+ pg[G1].translate(0, -offset);
+ }
+ else
+ {
+ getAnnotationPanel().renderer.drawComponent(getAnnotationPanel(),
+ av, pg[G0], -1, startRes, endRes + 1);
+ pg[G0].translate(0, -offset);
+ }