I have what you might call a typical daw Automation UI consisting of a DrawablePath which you can add nodes to and manipulate curves etc.
It works well, however at this stage i can only add nodes by making the parent component accept mouse events, which obviously isnt ideal if you want to manipulate the clips beneath.
What i would like is to be able to click on the DrawablePath to select it to be editable, add nodes etc
Nothing i do with mouse listeners seems to have any effect, perhaps because there are no bounds set? And I also investigated trying to detect line intersection with the mouse coordinates, but the docs state that this only works with closed paths.
So, is it possible to get a drawable path to detect the mouse?
A 2D path is totally the wrong kind of mathematical object for an automation curve.. Normally you'd store a sequence of points instead, and although you'd draw it with a Path, that's not what you'd use to manipulate the data.