Revision: 813
Author: allain.lalonde
Date: Fri Oct 23 14:45:20 2009
Log: Thanks to Nigel for pointing out:

I notice that the following line in TooltipExample.java

   final PNode n = event.getInputManager().getMouseOver().getPickedNode
();

Could be rewritten simply as:

final PNode n = event.getPickedNode();



http://code.google.com/p/piccolo2d/source/detail?r=813

Modified:
   
/piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/TooltipExample.java

=======================================
---  
/piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/TooltipExample.java
     
Tue Jul 28 12:46:54 2009
+++  
/piccolo2d.java/trunk/examples/src/main/java/edu/umd/cs/piccolo/examples/TooltipExample.java
     
Fri Oct 23 14:45:20 2009
@@ -84,7 +84,7 @@
              }

              public void updateToolTip(final PInputEvent event) {
-                final PNode n =  
event.getInputManager().getMouseOver().getPickedNode();
+                final PNode n = event.getPickedNode();
                  final String tooltipString = (String)  
n.getAttribute("tooltip");
                  final Point2D p = event.getCanvasPosition();


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

Reply via email to