thanks again Larry Becker wrote: > Committed. The code is: > > public void keyReleased(KeyEvent e) > { > if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE) > { > if (coordinates.size() > 1) > coordinates.remove(coordinates.size() - 1); > panel.repaint(); > } else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) > try { > finishGesture(); > }catch (Exception ex) { > getPanel().getContext().handleThrowable(ex); > }; > } > > The Escape key just stops the tool where it is, unlike right or double > click which adds another point and stops. > > regards, > Larry > > On Mon, Feb 22, 2010 at 8:58 PM, Stefan Steiniger <sst...@geo.uzh.ch > <mailto:sst...@geo.uzh.ch>> wrote: > > thanks Volker.. "we" should commit that ;) > tmrw. > > Larry Becker schrieb: > > Unlike MultiClickTool, ConstrainedMultiClickTool ends with both > > double-click and right-click. Adding Escape sounds like a valid > > enhancement to me. > > > > regards, > > Larry > > > > On Mon, Feb 22, 2010 at 9:20 AM, <vowah...@aol.com > <mailto:vowah...@aol.com> > > <mailto:vowah...@aol.com <mailto:vowah...@aol.com>>> wrote: > > > > Hi, > > > > it's just a small thing, but it is kind of intuitive to cancel a > > gesture by pressing Escape, imo. To implement that for an > instance > > of ConstrainedMultiClickTool would be quite easy by changing the > > current keypressed-method in line 337: > > > > public void keyPressed(KeyEvent e){ > > if (e.getKeyCode() == KeyEvent.VK_ESCAPE) > > cancelGesture(); > > } > > > > > > Are there any concerns? > > > > Regards > > > > Volker > > > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, > find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > > <mailto:Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net>> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > > > > > > -- > > Larry Becker > > Integrated Systems Analysts, Inc. > > > > > > > ------------------------------------------------------------------------ > > > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > -- > Larry Becker > Integrated Systems Analysts, Inc. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel