From: Hendrik <nh...@us...> - 2009-09-06 18:54:09
|
Update of /cvsroot/arianne/marboard/src/net/sf/arianne/marboard/client/gui/drawingtool In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16238/src/net/sf/arianne/marboard/client/gui/drawingtool Modified Files: ShapePickerDrawingTool.java Log Message: gracefully handle clicks outside any shapes Index: ShapePickerDrawingTool.java =================================================================== RCS file: /cvsroot/arianne/marboard/src/net/sf/arianne/marboard/client/gui/drawingtool/ShapePickerDrawingTool.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ShapePickerDrawingTool.java 6 Sep 2009 09:53:59 -0000 1.1 --- ShapePickerDrawingTool.java 6 Sep 2009 18:53:57 -0000 1.2 *************** *** 26,30 **** public void handleMouseEvent(BoardState board, MouseEvent event) { Shape shape = this.board.pickShape(event.getX(), event.getY()); ! logger.info(shape); } --- 26,32 ---- public void handleMouseEvent(BoardState board, MouseEvent event) { Shape shape = this.board.pickShape(event.getX(), event.getY()); ! if (shape != null) { ! logger.info(shape.getRPObject()); ! } } |