[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool RectTool.java, 1.16, 1.17
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2006-10-10 15:03:30
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30340/src/net/sourceforge/bprocessor/gl/tool Modified Files: RectTool.java Log Message: Moving drag handling to abstractpencil Index: RectTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/RectTool.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** RectTool.java 11 Sep 2006 12:47:32 -0000 1.16 --- RectTool.java 10 Oct 2006 15:03:26 -0000 1.17 *************** *** 40,47 **** where the rectangle was moved */ private Vertex lastCurrent; - - /** Dragging flag */ - private boolean dragging; - /** * Constructor --- 40,43 ---- *************** *** 150,153 **** --- 146,150 ---- start = current; lastCurrent = start.vertex(); + active = true; } else if (baseEdge == null) { if (start.vertex().distance(current.vertex()) > 0.0) { *************** *** 163,186 **** updateFeedback(); } - - /** - * @param e MouseEvent - */ - protected void dragged(MouseEvent e) { - moved(e); - if (!dragging) { - dragging = true; - } - } - - /** - * @param e MouseEvent - */ - protected void released(MouseEvent e) { - if (dragging && start != null) { - pressed(e); - dragging = false; - } - } /** --- 160,163 ---- |