[JPP-Devel] Another question on AbstractCursorTool source code...

2006-09-06 Thread Sunburned Surveyor
I've got another quick question on the AbstractCursorTool source code. It appears that in the definition of the activate() method that the a layerViewPanelListener is removed from the "panel" member variable that stores the LayerViewPanel the CursorTool operates "over". I am wondering if this is

Re: [JPP-Devel] Another question on AbstractCursorTool source code...

2006-09-06 Thread Larry Becker
Hi Sunburned,   I think what is going on here is that activate is used to change from one LayerViewPanel to another.  When the change is made, the listener for the old panel has to be deactivated so that the cursor tool will listen only to the mouse events in the newly activated panel.  If you remo

Re: [JPP-Devel] Another question on AbstractCursorTool source code...

2006-09-06 Thread Sunburned Surveyor
Larry, That makes total sense! Thanks for the help. It will take me a while to read trough and understand this CursorTool code, but I'm learning a lot about OpenJUMP's code base and I think it'll be worth the effort in the long run. Thanks again for the help. The Sunburned Surveyor On 9/6/06,