コード例 #1
0
ファイル: StdDraw.java プロジェクト: mhlee1215/java_class
 /** This method cannot be called directly. */
 public void mousePressed(MouseEvent e) {
   synchronized (mouseLock) {
     mouseX = StdDraw.userX(e.getX());
     mouseY = StdDraw.userY(e.getY());
     mousePressed = true;
     // System.out.println(mouseX+" ,"+mouseY);
   }
 }
コード例 #2
0
ファイル: StdDraw.java プロジェクト: mhlee1215/java_class
 /** This method cannot be called directly. */
 public void mouseMoved(MouseEvent e) {
   synchronized (mouseLock) {
     mouseX = StdDraw.userX(e.getX());
     mouseY = StdDraw.userY(e.getY());
   }
 }