More on picking
thanks to the people replies my previous post new I'm able to draw polylines (finally I use SGShape subclass with GeneralPath).
Now the problem is if I draw a line only two points using SGShape.Mode.STROKE (without fill setted) it seems the picking process never "detects" my object.
In the same way, if I draw polylines with 3 points (imagine a triangle without the line in its base) the picking process "detects" the object when I'm "inside the triangle.
What I want is to know when I'm exactly over the line?
Thanks in advice for any ideas.