Revision: 560
Author: allain.lalonde
Date: Fri Jul 24 07:37:07 2009
Log: Moving helper method to bottom of MouseListener to be consistent.
http://code.google.com/p/piccolo2d/source/detail?r=560

Modified:
  /piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java

=======================================
---  
/piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java        
 
Fri Jul 24 07:36:10 2009
+++  
/piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/PCanvas.java        
 
Fri Jul 24 07:37:07 2009
@@ -457,12 +457,7 @@
                      }

                      sendInputEventToInputManager(e,  
MouseEvent.MOUSE_PRESSED);
-                }
-
-                private void  
sendRetypedMouseEventToInputManager(MouseEvent e, int newType) {
-                    MouseEvent retypedEvent = buildRetypedMouseEvent(e,  
newType);
-                    sendInputEventToInputManager(retypedEvent, newType);
-                }
+                }

                  /** {...@inheritdoc} */
                  public void mouseReleased(MouseEvent e) {
@@ -536,7 +531,11 @@
                      return new MouseEvent((Component) e.getSource(),  
newType, e.getWhen(), e.getModifiers(), e.getX(),
                              e.getY(), e.getClickCount(),  
e.isPopupTrigger(), newButton);
                  }
-
+
+                private void  
sendRetypedMouseEventToInputManager(MouseEvent e, int newType) {
+                    MouseEvent retypedEvent = buildRetypedMouseEvent(e,  
newType);
+                    sendInputEventToInputManager(retypedEvent, newType);
+                }
              };
              addMouseListener(mouseListener);
          }

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to