/[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.22 by benja, Sun Feb 23 20:43:40 2003 UTC revision 1.23 by benja, Sun Feb 23 21:11:34 2003 UTC
# Line 63  public class SimpleView implements View Line 63  public class SimpleView implements View
63                                 1, 1, sizex, sizey);                                 1, 1, sizex, sizey);
64          nodeView.render(sc, cs, c.focus);          nodeView.render(sc, cs, c.focus);
65                    
66          SortedSet nodes = c.getConnections(1);          int before = c.getRotationIndex();
         int before;  
   
         if(c.rotation != null)  
             before = nodes.headSet(c.rotation).size();  
         else  
             before = 0;  
67                    
68          int x = midx + gapx + sizex/2,          int x = midx + gapx + sizex/2,
69              y = midy - sizey/2 - before*(gapy+sizey);              y = midy - sizey/2 - before*(gapy+sizey);
70                    
71          for(Iterator j=nodes.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);
# Line 82  public class SimpleView implements View Line 76  public class SimpleView implements View
76              y += sizey + gapy;              y += sizey + gapy;
77          }          }
78    
         nodes = c.getConnections(-1);  
79          x = midx - gapx - sizex - sizex/2;          x = midx - gapx - sizex - sizex/2;
80          y = midy - sizey/2 - before*(gapy+sizey);          y = midy - sizey/2 - before*(gapy+sizey);
81    
82          for(Iterator j=nodes.iterator(); j.hasNext();) {          for(Iterator j=c.getConnections(-1).iterator(); j.hasNext();) {
83              RDFNode node = (RDFNode)j.next();              RDFNode node = (RDFNode)j.next();
84              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);
85              nodeView.render(sc, cs2, node);              nodeView.render(sc, cs2, node);

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

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