Color currentColor = null;\r
Color currentTextColor = null;\r
\r
+ pg.setFont(new Font(av.getFont().getName(),\r
+ Font.ITALIC,\r
+ av.getFont().getSize()));\r
for (int i = startSeq; i < endSeq; i++)\r
{\r
if ( (av.getSelectionGroup() != null) &&\r
(av.getCharHeight() / 5));\r
}\r
\r
+ pg.setFont(av.getFont());\r
+\r
// draw main sequence panel\r
pg.translate(idWidth, 0);\r
seqPanel.seqCanvas.drawPanel(pg, startRes, endRes, startSeq, endSeq,\r
\r
if (av.showAnnotation && (endSeq == av.alignment.getHeight()))\r
{\r
- pg.translate( -idWidth, (endSeq - startSeq) * av.charHeight + 3);\r
+ pg.translate( -idWidth-3, (endSeq - startSeq) * av.charHeight + 3);\r
alabels.drawComponent( (Graphics2D) pg, idWidth);\r
- pg.translate(idWidth, 0);\r
+ pg.translate(idWidth+3, 0);\r
annotationPanel.drawComponent( (Graphics2D) pg, startRes, endRes +\r
1);\r
}\r
}\r
if (labels != null)\r
{\r
- pg.translate(0,\r
+ pg.translate(-3,\r
ypos +\r
(av.getAlignment().getHeight() * av.charHeight));\r
\r
pg.setFont(av.getFont());\r
labels.drawComponent(pg, idWidth);\r
pg.setFont(italic);\r
- pg.translate(0,\r
+ pg.translate(+3,\r
-ypos -\r
(av.getAlignment().getHeight() * av.charHeight));\r
}\r
if (av.getWrapAlignment())\r
{\r
if(im.getGraphics()!=null)\r
+ {\r
printWrappedAlignment(im.getGraphics(), width, height, 0);\r
+ im.writeImage();\r
+ }\r
}\r
else\r
{\r
if(im.getGraphics()!=null)\r
+ {\r
printUnwrapped(im.getGraphics(), width, height, 0);\r
+ im.writeImage();\r
+ }\r
}\r
-\r
- im.writeImage();\r
}\r
catch (OutOfMemoryError err)\r
{\r
*/\r
public void drawComponent(Graphics g, int width)\r
{\r
+ g.setFont(new Font("Arial", Font.PLAIN, av.getFont().getSize()-2));\r
FontMetrics fm = g.getFontMetrics(g.getFont());\r
g.setColor(Color.white);\r
g.fillRect(0, 0, getWidth(), getHeight());\r
for (int i = starty; i < av.alignment.getHeight(); i++)\r
{\r
SequenceI s = av.alignment.getSequenceAt(i);\r
+ gg.setFont(italic);\r
drawIdString(gg, s, i, 0, ypos);\r
}\r
\r
if(labels!=null)\r
{\r
- gg.setFont(av.getFont());\r
gg.translate(0, ypos+(av.getAlignment().getHeight() * av.charHeight));\r
labels.drawComponent(gg, getWidth());\r
gg.translate(0, -ypos-(av.getAlignment().getHeight() * av.charHeight));\r
- gg.setFont(italic);\r
+\r
}\r
}\r
}\r