Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22071/src/net/sourceforge/bprocessor/gl/view
Modified Files:
View.java
Log Message:
display space of path
Index: View.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v
retrieving revision 1.280
retrieving revision 1.281
diff -C2 -d -r1.280 -r1.281
*** View.java 29 Aug 2008 09:42:19 -0000 1.280
--- View.java 29 Aug 2008 12:27:40 -0000 1.281
***************
*** 888,903 ****
}
! private void drawPath(LinkedList<Container> path, boolean selection) {
LinkedList<Label> labels = new LinkedList<Label>();
boolean first = true;
for (Container space : path) {
- if (!first) {
- labels.add(new Label(">>"));
- } else {
- first = false;
- }
labels.add(new SpaceBox(space));
}
{
--- 888,909 ----
}
! private void drawPath(LinkedList<Container> path, boolean selecting) {
LinkedList<Label> labels = new LinkedList<Label>();
boolean first = true;
for (Container space : path) {
labels.add(new SpaceBox(space));
+ labels.add(new Label("/"));
}
+ Selection selection = Selection.primary();
+
+ if (selection.size() == 1) {
+ Geometric geometric = selection.iterator().next();
+ if (geometric instanceof Container) {
+ Container container = (Container) geometric;
+ labels.add(new SpaceBox(container));
+ labels.add(new Label(">>"));
+ }
+ }
{
***************
*** 925,933 ****
gl.glTranslated(0, 0, 0.5);
for (Label label : labels) {
! if (selection) {
pushName(gl, label);
}
! label.display(gl, glu, selection);
! if (selection) {
popName(gl);
}
--- 931,939 ----
gl.glTranslated(0, 0, 0.5);
for (Label label : labels) {
! if (selecting) {
pushName(gl, label);
}
! label.display(gl, glu, selecting);
! if (selecting) {
popName(gl);
}
|