public int printUnwrapped(Graphics pg, int pwidth, int pheight, int pi) throws PrinterException\r
{\r
\r
- int idWidth = calculateIdWidth().width;\r
+ int idWidth = calculateIdWidth().width + 4;\r
\r
\r
pg.setColor(Color.white);\r
\r
////////////////\r
//draw Scale\r
- pg.translate(30,0);\r
+ pg.translate(idWidth,0);\r
scalePanel.drawScale(pg, startRes, endRes, pwidth-idWidth);\r
\r
- pg.translate(-30, 30);\r
+ pg.translate(-idWidth, 30);\r
////////////////\r
// Draw the ids\r
Color currentColor=null;\r
}\r
\r
// draw main sequence panel\r
- pg.translate(idWidth+4,0);\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
public int printWrappedAlignment(Graphics pg, int pwidth, int pheight, int pi) throws PrinterException\r
{\r
\r
- int idWidth = calculateIdWidth().width;\r
+ int idWidth = calculateIdWidth().width+4;\r
\r
if( seqPanel.seqCanvas.getWidth() < pwidth-idWidth)\r
pwidth = seqPanel.seqCanvas.getWidth() + idWidth;\r
}\r
\r
// draw main sequence panel\r
- pg.translate(idWidth+4,0);\r
+ pg.translate(idWidth,0);\r
seqPanel.seqCanvas.drawWrappedPanel(pg, pwidth-idWidth, pheight, pi*noChunksOnPage*chunkWidth);\r
\r
\r