\r
public void setScrollValues(int x, int y)\r
{\r
+ av.setEndRes(x + seqPanel.seqCanvas.getWidth()/av.getCharWidth()-1);\r
+\r
hextent = seqPanel.seqCanvas.getWidth()/av.charWidth;\r
vextent = seqPanel.seqCanvas.getHeight()/av.charHeight;\r
\r
hscroll.setValues(x,hextent,0,av.getAlignment().getWidth());\r
vscroll.setValues(y,vextent,0,av.getAlignment().getHeight() );\r
\r
+\r
+\r
}\r
\r
\r
}\r
}\r
\r
-\r
if(overviewPanel!=null)\r
overviewPanel.setBoxPosition();\r
\r
\r
////////////////\r
// Draw the ids\r
- pg.setClip(0,0,pwidth, noChunksOnPage*chunkHeight);\r
+// pg.setClip(0,0,pwidth, noChunksOnPage*chunkHeight);\r
\r
pg.setColor(Color.black);\r
\r
int rowSize = av.getEndRes() - av.getStartRes();\r
- // Draw the rest of the panels\r
-\r
- for(int ypos=2*av.charHeight, row=av.getEndRes(); row<av.alignment.getWidth();\r
- ypos += av.chunkHeight, row+=rowSize )\r
+ for(int ypos=2*av.charHeight, row=av.getEndRes()-rowSize;\r
+ ypos <= pheight && row<av.alignment.getWidth();\r
+ ypos += av.chunkHeight, row+=rowSize )\r
{\r
for (int i = 0; i < endy; i++)\r
{\r
}\r
\r
\r
-System.out.println(width +" "+height);\r
\r
try\r
{\r
FileOutputStream out = new FileOutputStream(chooser.getSelectedFile());\r
\r
BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\r
- Graphics png = bi.getGraphics();\r
+ Graphics2D png = (Graphics2D)bi.getGraphics();\r
\r
+ png.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\r
\r
if (av.getWrapAlignment())\r
printWrappedAlignment(png, width, height, 0);\r