/[gzz]/gzz/lava/gzz/loom/SimpleView.java
ViewVC logotype

Diff of /gzz/lava/gzz/loom/SimpleView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by Vegai, Wed Feb 26 16:55:36 2003 UTC revision 1.25 by tuukkah, Wed Feb 26 18:03:55 2003 UTC
# Line 61  public class SimpleView implements View Line 61  public class SimpleView implements View
61          int midx = sc.size.width/2, midy = sc.size.height/2;          int midx = sc.size.width/2, midy = sc.size.height/2;
62          int cs = sc.orthoBoxCS(into, c.focus, 0, midx-sizex/2, midy-sizey/2,          int cs = sc.orthoBoxCS(into, c.focus, 0, midx-sizex/2, midy-sizey/2,
63                                 1, 1, sizex, sizey);                                 1, 1, sizex, sizey);
64          nodeView.render(sc, cs, c.focus);          nodeView.render(sc, cs, c.focus, 0);
65                    
66          int before = c.getRotationIndex(1);          int before = c.getRotationIndex(1);
67                    
# Line 71  public class SimpleView implements View Line 71  public class SimpleView implements View
71          for(Iterator j=c.getConnections(1).iterator(); j.hasNext();) {          for(Iterator j=c.getConnections(1).iterator(); j.hasNext();) {
72              RDFNode node = (RDFNode)j.next();              RDFNode node = (RDFNode)j.next();
73              int cs2 = sc.orthoBoxCS(into, node, 0, x, y, 1, 1, sizex, sizey);              int cs2 = sc.orthoBoxCS(into, node, 0, x, y, 1, 1, sizex, sizey);
74              nodeView.render(sc, cs2, node);              nodeView.render(sc, cs2, node, 1);
75              sc.map.put(conn, cs, cs2);              sc.map.put(conn, cs, cs2);
76              y += sizey + gapy;              y += sizey + gapy;
77          }          }
# Line 83  public class SimpleView implements View Line 83  public class SimpleView implements View
83          for(Iterator j=c.getConnections(-1).iterator(); j.hasNext();) {          for(Iterator j=c.getConnections(-1).iterator(); j.hasNext();) {
84              RDFNode node = (RDFNode)j.next();              RDFNode node = (RDFNode)j.next();
85              int cs2 = sc.orthoBoxCS(into, node, 0, x, y, 1, 1, sizex, sizey);              int cs2 = sc.orthoBoxCS(into, node, 0, x, y, 1, 1, sizex, sizey);
86              nodeView.render(sc, cs2, node);              nodeView.render(sc, cs2, node, -1);
87              sc.map.put(conn, cs2, cs);              sc.map.put(conn, cs2, cs);
88              y += sizey + gapy;              y += sizey + gapy;
89          }          }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26