コード例 #1
0
ファイル: Canvas.java プロジェクト: r0the/logisim
 protected void paintForeground(Graphics g) {
   CanvasModel cModel = this.model;
   CanvasTool tool = listener.getTool();
   if (cModel != null) {
     Graphics dup = g.create();
     cModel.paint(g, selection);
     dup.dispose();
   }
   if (tool != null) {
     Graphics dup = g.create();
     tool.draw(this, dup);
     dup.dispose();
   }
 }