[piccolo2d-dev] Issue 234 in piccolo2d: Invisible PClips are reported to be picked by InputEventHandler

2011-12-28 Thread piccolo2d

Status: New
Owner: atdi...@gmail.com
Labels: Priority-Medium Type-Defect Toolkit-Piccolo2D.Java Component-Extras

New issue 234 by atdi...@gmail.com: Invisible PClips are reported to be  
picked by InputEventHandler

http://code.google.com/p/piccolo2d/issues/detail?id=234

I noted in Issue 113, we added a guard in PNode.fullPick() to only proceed  
if the node is visible. PClip duplicates PNode.fullPick() to support the  
clipping behavior.


The easy workaround is to override PClip and reintroduce the guard, but I  
wanted to get this out as an minor issue, b/c it the changed behavior threw  
me when I converted a PNode to a PClip.


Should we make PClip behave like PNode in this regard? Should we introduce  
a protected method in PNode so that PClip doesn't have to override the  
entire PNode's fullPaint() method just to change one line? I recommend we  
do something like this in next major version of Piccolo (don't want to  
change PClip's behavior for a minor version).



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


[piccolo2d-dev] Re: Issue 234 in piccolo2d: Invisible PClips are reported to be picked by InputEventHandler

2011-12-28 Thread piccolo2d


Comment #1 on issue 234 by atdi...@gmail.com: Invisible PClips are reported  
to be picked by InputEventHandler

http://code.google.com/p/piccolo2d/issues/detail?id=234

Let me clarify, as my first paragraph above was unclear...

PClip.fullPick() doesn't have the getVisible() check that PNode.fullPick()  
has, so PClip nodes are picked even if they are invisible.


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