コード例 #1
0
ファイル: CorrectedPanel.java プロジェクト: craftoid/jbead
 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
ファイル: CorrectedPanel.java プロジェクト: craftoid/jbead
 @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();
 }