Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9689/src/net/sourceforge/bprocessor/gl/tool
Modified Files:
FinalMoveTool.java
Log Message:
Instance work
Index: FinalMoveTool.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/FinalMoveTool.java,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** FinalMoveTool.java 25 Jun 2009 22:17:40 -0000 1.51
--- FinalMoveTool.java 26 Jun 2009 12:39:54 -0000 1.52
***************
*** 612,615 ****
--- 612,630 ----
}
+
+ /**
+ * Activate this move tool on an instance
+ * @param instance Instance to move
+ */
+ public void activate (Instance instance) {
+ CoordinateSystem anchor = instance.getInstanceAnchor();
+ Vertex center = anchor.unTranslate(anchor.getOrigin());
+ Intersection intersection = new Intersection(center, Intersection.VERTEX, instance);
+ LinkedList<Geometric> geometrics = new LinkedList();
+ geometrics.add(instance);
+ activate(geometrics, intersection);
+ }
+
+
/***
* Activate the tool on this collection of geometric
|