// Its possible on certain browsers that the call to fastpaint
// is faster than it can paint, so this check here catches
// this possibility
- if (lastsr + horizontal != av.startRes)
+ if (lastsr + horizontal != av.getStartRes())
{
- horizontal = av.startRes - lastsr;
+ horizontal = av.getStartRes() - lastsr;
}
- lastsr = av.startRes;
+ lastsr = av.getStartRes();
fastPaint = true;
gg.copyArea(horizontal * avcharWidth, vertical * avcharHeight, imgWidth
imgHeight - vertical * avcharHeight, -horizontal * avcharWidth,
-vertical * avcharHeight);
- int sr = av.startRes, er = av.endRes, ss = av.startSeq, es = av.endSeq, transX = 0, transY = 0;
+ int sr = av.getStartRes(), er = av.getEndRes(), ss = av.getStartSeq(), es = av
+ .getEndSeq(), transX = 0, transY = 0;
if (horizontal > 0) // scrollbar pulled right, image to the left
{
else if (vertical > 0) // scroll down
{
ss = es - vertical;
- if (ss < av.startSeq) // ie scrolling too fast, more than a page at a time
+ if (ss < av.getStartSeq()) // ie scrolling too fast, more than a page at a
+ // time
{
- ss = av.startSeq;
+ ss = av.getStartSeq();
}
else
{
else if (vertical < 0)
{
es = ss - vertical;
- if (es > av.endSeq)
+ if (es > av.getEndSeq())
{
- es = av.endSeq;
+ es = av.getEndSeq();
}
}
if (av.getWrapAlignment())
{
- drawWrappedPanel(gg, imgWidth, imgHeight, av.startRes);
+ drawWrappedPanel(gg, imgWidth, imgHeight, av.getStartRes());
}
else
{
- drawPanel(gg, av.startRes, av.endRes, av.startSeq, av.endSeq, 0);
+ drawPanel(gg, av.getStartRes(), av.getEndRes(), av.getStartSeq(),
+ av.getEndSeq(), 0);
}
g.drawImage(img, 0, 0, this);
av.setWrappedWidth(cWidth);
- av.endRes = av.startRes + cWidth;
+ av.setEndRes(av.getStartRes() + cWidth);
int endx;
int ypos = hgap;