Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13507/src/net/sourceforge/bprocessor/gl/view
Modified Files:
View.java Display.java
Log Message:
drawing temporary vertices
Index: Display.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/Display.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Display.java 2 Oct 2007 12:38:01 -0000 1.17
--- Display.java 2 Oct 2007 13:04:21 -0000 1.18
***************
*** 699,702 ****
--- 699,703 ----
Collection<Edge> edges = new LinkedList();
Collection<Constructor> constructors = new LinkedList();
+ Collection<Vertex> vertices = new LinkedList();
for (Geometric current : extras) {
if (current instanceof Edge) {
***************
*** 704,707 ****
--- 705,710 ----
} else if (current instanceof Constructor) {
constructors.add((Constructor) current);
+ } else if (current instanceof Vertex) {
+ vertices.add((Vertex) current);
}
}
***************
*** 717,720 ****
--- 720,730 ----
}
+ if (selecting()) {
+ selectVertices(vertices);
+ } else {
+ drawVertices(vertices);
+ }
+
+
}
Index: View.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v
retrieving revision 1.237
retrieving revision 1.238
diff -C2 -d -r1.237 -r1.238
*** View.java 2 Oct 2007 12:38:01 -0000 1.237
--- View.java 2 Oct 2007 13:04:21 -0000 1.238
***************
*** 710,713 ****
--- 710,714 ----
extras.addAll(tempEdges);
extras.addAll(tempConstructors);
+ extras.addAll(tempVertices);
Display.extras(extras);
Display.draw(gld);
|