示例#1
0
 private void paintBeads(Graphics g) {
   if (scroll > model.getHeight() - 1) return;
   BeadPainter painter = new BeadPainter(this, model, view, symbolfont);
   for (Point pt : model.getRect(scroll, model.getHeight() - 1)) {
     byte c = model.get(pt);
     pt = model.correct(pt.unscrolled(scroll));
     if (aboveTop(pt)) break;
     painter.paint(g, pt, c);
   }
 }
示例#2
0
 @Override
 public void redraw(Point pt) {
   if (!isVisible()) return;
   Point _pt = pt.unscrolled(scroll);
   byte c = model.get(pt);
   _pt = model.correct(_pt);
   BeadPainter painter = new BeadPainter(this, model, view, symbolfont);
   Graphics g = getGraphics();
   setHints(g);
   painter.paint(g, _pt, c);
   g.dispose();
 }