scalePanelHolder.setVisible(!wrap);\r
hscroll.setVisible(!wrap);\r
idwidthAdjuster.setVisible(!wrap);\r
+\r
+ av.setShowAnnotation(!wrap);\r
annotationScroller.setVisible(!wrap);\r
annotationSpaceFillerHolder.setVisible(!wrap);\r
idSpaceFillerPanel1.setVisible(!wrap);\r
if(overviewPanel!=null)\r
overviewPanel.setBoxPosition();\r
\r
- seqPanel.seqCanvas.fastPaint(av.getStartRes()-oldX, av.getStartSeq()-oldY);\r
- idPanel.idCanvas.fastPaint( av.getStartSeq()-oldY );\r
- scalePanel.repaint();\r
- annotationPanel.fastPaint(av.getStartRes()-oldX);\r
+ if(av.getWrapAlignment())\r
+ repaint();\r
+ else\r
+ {\r
+ seqPanel.seqCanvas.fastPaint(av.getStartRes() - oldX,\r
+ av.getStartSeq() - oldY);\r
+ idPanel.idCanvas.fastPaint(av.getStartSeq() - oldY);\r
+ scalePanel.repaint();\r
+ if (av.getShowAnnotation())\r
+ annotationPanel.fastPaint(av.getStartRes() - oldX);\r
+ }\r
\r
}\r
\r
\r
// draw main sequence panel\r
pg.translate(idWidth,0);\r
- pg.setClip(0,0,pwidth-idWidth, pheight);\r
seqPanel.seqCanvas.drawPanel(pg,startRes,endRes,startSeq,endSeq,startRes,startSeq,0);\r
\r
+\r
+ if(av.getShowAnnotation())\r
+ {\r
+ pg.translate(-idWidth,(endSeq-startSeq)*av.charHeight);\r
+ alabels.drawComponent((Graphics2D)pg);\r
+ pg.translate(idWidth,0);\r
+ annotationPanel.drawComponent((Graphics2D) pg, startRes, endRes+1);\r
+ }\r
+\r
return Printable.PAGE_EXISTS;\r
}\r
\r
height = (av.alignment.getHeight()+1) * av.charHeight + 30;\r
width = idPanel.getWidth() + av.alignment.getWidth() * av.charWidth;\r
}\r
+ if(av.getShowAnnotation())\r
+ {\r
+ height += annotationPanel.getPreferredSize().height;\r
+ }\r
\r
try\r
{\r
width = idPanel.getWidth() + av.alignment.getWidth() * av.charWidth;\r
}\r
\r
+ if(av.getShowAnnotation())\r
+ {\r
+ height += annotationPanel.getPreferredSize().height;\r
+ }\r
+\r
\r
+System.out.println(width +" "+height);\r
\r
try\r
{\r