Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29138/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
ExtrudeTool.java
Log Message:
Moving drag handling to abstractpencil
Index: ExtrudeTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/ExtrudeTool.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** ExtrudeTool.java 5 Oct 2006 11:26:59 -0000 1.24
--- ExtrudeTool.java 10 Oct 2006 15:01:01 -0000 1.25
***************
*** 36,42 ****
static final int UNDICIDED = 0;
- /** If the input mode is dragging */
- static final int DRAG_MODE = 1;
-
/** If the input mode is press - press */
static final int MOVE_MODE = 2;
--- 36,39 ----
***************
*** 437,463 ****
}
}
-
- /**
- * Invoked when the mouse is held pressed and moved
- * @param e The MouseEvent object
- */
- protected void dragged(MouseEvent e) {
- if (Math.abs(prevX - e.getX()) + Math.abs(prevY - e.getY()) > 10) {
- mode = DRAG_MODE;
- }
- if (mode == DRAG_MODE) {
- doThing(e);
- }
- }
-
- /**
- * Invoked when a mouse button has been released on a component.
- * @param e The MouseEvent
- */
- protected void released(MouseEvent e) {
- if (mode == DRAG_MODE) {
- finishExtrusion();
- }
- }
/**
--- 434,437 ----
|