[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool TapeMeasureTool.java, 1.20, 1.21
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2006-10-10 15:04:09
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30356/src/net/sourceforge/bprocessor/gl/tool Modified Files: TapeMeasureTool.java Log Message: Moving drag handling to abstractpencil Index: TapeMeasureTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/TapeMeasureTool.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** TapeMeasureTool.java 11 Sep 2006 12:47:32 -0000 1.20 --- TapeMeasureTool.java 10 Oct 2006 15:03:50 -0000 1.21 *************** *** 87,97 **** } } - - /** - * Invoked when the mouse is held pressed and moved - * @param e The MouseEvent object - */ - protected void dragged(MouseEvent e) { - } /** --- 87,90 ---- *************** *** 103,111 **** if (current != null && current.object() instanceof Edge) { start = current; currentEdge = (Edge)current.object(); constructionPoint = start.vertex().copy(); currentConstruction = new Line(constructionPoint, currentEdge.getDirection(), true, false); - } } else { --- 96,104 ---- if (current != null && current.object() instanceof Edge) { start = current; + active = true; currentEdge = (Edge)current.object(); constructionPoint = start.vertex().copy(); currentConstruction = new Line(constructionPoint, currentEdge.getDirection(), true, false); } } else { *************** *** 133,143 **** } } - - /** - * Invoked when a mouse button has been released on a component. - * @param e The MouseEvent - */ - protected void released(MouseEvent e) { - } /** --- 126,129 ---- *************** *** 146,150 **** private void endTapeMeasure() { if (currentConstruction != null) { - // currentConstruction.setEditable(true); Geometry.insertConstructor(currentConstruction); constructors(new LinkedList()); --- 132,135 ---- *************** *** 153,156 **** --- 138,142 ---- start = null; lockDirection = null; + super.cleanUp(); glv.repaint(); } |