[archstudio-commits] svn commit: r7132 - in /calico/branches/mitchnick3/ics/uci/edu/Calico/UI: DragHistory.java MouseInputHandler.java

archstudio-commits-owner at uci.edu archstudio-commits-owner at uci.edu
Wed May 21 17:12:27 PDT 2008


Author: nmangano
Date: Wed May 21 17:12:27 2008
New Revision: 7132

Log:
Fixed transparency bugs (disappearing when coming from grid, and changing n=
ub options), also just tapping right click does not create a scrap anymore.

Modified:
    calico/branches/mitchnick3/ics/uci/edu/Calico/UI/DragHistory.java
    calico/branches/mitchnick3/ics/uci/edu/Calico/UI/MouseInputHandler.java

Modified: calico/branches/mitchnick3/ics/uci/edu/Calico/UI/DragHistory.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- calico/branches/mitchnick3/ics/uci/edu/Calico/UI/DragHistory.java (orig=
inal)
+++ calico/branches/mitchnick3/ics/uci/edu/Calico/UI/DragHistory.java Wed M=
ay 21 17:12:27 2008
@@ -49,6 +49,10 @@
 		return enclosed;
 	}
 	=

+	public int getNumPoints() {
+		return path.size();
+	}
+	=

 	/**
 	 * This makes my life easier by allowing to see if two lines composed of =
Point2D objects intersect.
 	 * @param l1p1

Modified: calico/branches/mitchnick3/ics/uci/edu/Calico/UI/MouseInputHandle=
r.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- calico/branches/mitchnick3/ics/uci/edu/Calico/UI/MouseInputHandler.java=
 (original)
+++ calico/branches/mitchnick3/ics/uci/edu/Calico/UI/MouseInputHandler.java=
 Wed May 21 17:12:27 2008
@@ -583,7 +583,9 @@
 			}
 =

 			if (MODE =3D=3D SCRAP_OUTLINE) {
-				if (hist.isEnclosed())
+				if (hist.getNumPoints() < 10) { }
+					=

+				else if (hist.isEnclosed())
 					canvas.applyAction(new AddScrap(hist.getPolygon()));
 				else
 					canvas.applyAction(new AddScrap(hist.getPolyline()));




More information about the archstudio-commits mailing list