import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.RenderingHints;
+import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.beans.PropertyChangeEvent;
import java.util.Iterator;
}
else
{
- transY = img.getHeight() - ((vertical + 1) * charHeight);
+ transY = ((int)0.5*img.getHeight()) - ((vertical + 1) * charHeight);
}
}
else if (vertical < 0)
// + " " + startSeq + " " + endSeq);
Graphics gg = img.getGraphics();
- gg.copyArea(horizontal * charWidth, vertical * charHeight,
- img.getWidth(), img.getHeight(), -horizontal * charWidth,
+ gg.copyArea(2*horizontal * charWidth, 2*vertical * charHeight,
+ img.getWidth(), img.getHeight(), -2*horizontal * charWidth,
-vertical * charHeight);
+
/** @j2sNative xxi = this.img */
// {
// fastPaint = false;
// }
-
+ Graphics2D g2g = (Graphics2D) g;
+ g2g.scale(0.5,0.5);
+
Rectangle vis, clip;
if (img != null
&& (fastPaint
if (img == null || width != img.getWidth()
|| height != img.getHeight())
{
- img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
+ img = new BufferedImage(2*width, 2*height, BufferedImage.TYPE_INT_RGB);
}
Graphics2D gg = (Graphics2D) img.getGraphics();
+ gg.scale(2,2);
gg.setFont(av.getFont());
if (av.antiAlias)
}
drawSelectionGroup(gg, startRes, endRes, startSeq, endSeq);
-
+// java.awt.geom.AffineTransform tr = ((Graphics2D) g).getDeviceConfiguration().getNormalizingTransform();
+
g.drawImage(img, 0, 0, this);
gg.dispose();
}
{
drawCursor(g, startRes, endRes, startSeq, endSeq);
}
+ g2g.scale(2,2);
}
/**