Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29092/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
ArcTool.java
Log Message:
Moving drag handling to abstractpencil
Index: ArcTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/ArcTool.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** ArcTool.java 11 Sep 2006 12:47:32 -0000 1.13
--- ArcTool.java 10 Oct 2006 15:00:26 -0000 1.14
***************
*** 29,35 ****
private Intersection end;
- /** Wherther or not the arc tool is being dragged */
- private boolean dragging;
-
/** Radius of the current arc */
private double radius = 0;
--- 29,32 ----
***************
*** 191,194 ****
--- 188,192 ----
if (start == null) {
start = current;
+ active = true;
} else {
if (end == null) {
***************
*** 198,201 ****
--- 196,200 ----
start = null;
end = null;
+ active = false;
}
}
***************
*** 204,229 ****
}
}
-
- /**
- * @param e MouseEvent
- */
- protected void dragged(MouseEvent e) {
- if (!dragging) {
- dragging = true;
- }
- moved(e);
- }
-
-
- /**
- * @param e MouseEvent
- */
- protected void released(MouseEvent e) {
- if (dragging) {
- pressed(e);
- dragging = false;
- }
-
- }
/**
--- 203,206 ----
|