/[fenfire]/fenfire/org/fenfire/loom/SimpleView.java
ViewVC logotype

Diff of /fenfire/org/fenfire/loom/SimpleView.java

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

revision 1.4 by benja, Tue Mar 4 15:48:15 2003 UTC revision 1.5 by benja, Tue Mar 4 16:49:25 2003 UTC
# Line 59  public class SimpleView implements View Line 59  public class SimpleView implements View
59    
60      public void render(VobScene sc, int into, Cursor c) {      public void render(VobScene sc, int into, Cursor c) {
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,          NodeView.Nodespec spec = new NodeView.Nodespec(c.focus);
63            int cs = sc.orthoBoxCS(into, spec, 0, midx-sizex/2, midy-sizey/2,
64                                 1, 1, sizex, sizey);                                 1, 1, sizex, sizey);
65          sc.coords.activate(cs);          sc.coords.activate(cs);
66          nodeView.render(sc, cs, c.focus, null, 0);          nodeView.render(sc, cs, spec);
67                    
68          int before = c.getRotationIndex(1);          int before = c.getRotationIndex(1);
69                    
# Line 72  public class SimpleView implements View Line 73  public class SimpleView implements View
73          for(Iterator j=c.getConnections(1).iterator(); j.hasNext();) {          for(Iterator j=c.getConnections(1).iterator(); j.hasNext();) {
74              Statement stmt = (Statement)j.next();              Statement stmt = (Statement)j.next();
75              RDFNode node = stmt.getObject();              RDFNode node = stmt.getObject();
76              int cs2 = sc.orthoBoxCS(into, node, 0, x, y, 1, 1, sizex, sizey);              spec = new NodeView.Nodespec(node, stmt.getPredicate(), 1);
77                int cs2 = sc.orthoBoxCS(into, spec, 0, x, y, 1, 1, sizex, sizey);
78              sc.coords.activate(cs2);              sc.coords.activate(cs2);
79              nodeView.render(sc, cs2, node, stmt.getPredicate(), 1);              nodeView.render(sc, cs2, spec);
80              sc.map.put(conn, cs, cs2);              sc.map.put(conn, cs, cs2);
81              y += sizey + gapy;              y += sizey + gapy;
82          }          }
# Line 86  public class SimpleView implements View Line 88  public class SimpleView implements View
88          for(Iterator j=c.getConnections(-1).iterator(); j.hasNext();) {          for(Iterator j=c.getConnections(-1).iterator(); j.hasNext();) {
89              Statement stmt = (Statement)j.next();              Statement stmt = (Statement)j.next();
90              RDFNode node = stmt.getSubject();              RDFNode node = stmt.getSubject();
91              int cs2 = sc.orthoBoxCS(into, node, 0, x, y, 1, 1, sizex, sizey);              spec = new NodeView.Nodespec(node, stmt.getPredicate(), -1);
92                int cs2 = sc.orthoBoxCS(into, spec, 0, x, y, 1, 1, sizex, sizey);
93              sc.coords.activate(cs2);              sc.coords.activate(cs2);
94              nodeView.render(sc, cs2, node, stmt.getPredicate(), -1);              nodeView.render(sc, cs2, spec);
95              sc.map.put(conn, cs2, cs);              sc.map.put(conn, cs2, cs);
96              y += sizey + gapy;              y += sizey + gapy;
97          }          }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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