コード例 #1
0
ファイル: PolygonTool.java プロジェクト: samskivert/jhotdraw6
 public void mouseMove(MouseEvent e, int x, int y) {
   if (e.getSource() == getActiveView()) {
     if (fPolygon != null) {
       if (fPolygon.pointCount() > 1) {
         fPolygon.setPointAt(new Point(x, y), fPolygon.pointCount() - 1);
         getActiveView().checkDamage();
       }
     }
   }
 }