Re: [JPP-Devel] Help with Mock Object for LayerViewPanel...

2007-05-03 Thread Robert F. Littlefield
Just pass in null for the panel parameter. LayerRenderer lr = new LayerRenderer(null, null); will return you a LayerRenderer object. On 5/3/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote: I'm trying to cook up a mock object for the LayerViewPanel class, which will allow me to test elements o

Re: [JPP-Devel] Bugfix from SkyJUMP

2007-03-16 Thread Robert F. Littlefield
Stefan: Look at the QuasimodeTool. The problem is that the JUMP code adds a window listener every time a tool is activated, but never removes them. If you compare SkyJUMP with JUMP you will see that we create a window listener and then remove it in the deactivate() method. This parallels the use

Re: [JPP-Devel] CursorTool - isRightMouseButtonUsed()

2006-11-17 Thread Robert F. Littlefield
The short answer: the right click is special only if you want to make it special. The longer answer is: The AbstractCursor class implements the CursorTool interface. Any cursor tool that is descended from this class will implement the mouseClicked method. This method will be called whenever any o