/[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.10 by Vegai, Sat Feb 22 15:44:15 2003 UTC revision 1.11 by benja, Sat Feb 22 16:07:08 2003 UTC
# Line 51  public class SimpleView implements View Line 51  public class SimpleView implements View
51      public void render(VobScene sc, int into, Resource focus,      public void render(VobScene sc, int into, Resource focus,
52                         RDFNode rotation) {                         RDFNode rotation) {
53          try {          try {
54              int cs = sc.boxCS(into, focus, 0, 0, 50, 20);              int midx = sc.size.width/2, midy = sc.size.height/2;
55    
56                int cs = sc.boxCS(into, focus, midx-25, midy-10, 50, 20);
57                int x = midx + 75, y = midy-10;
58              sc.map.put(bg, cs);              sc.map.put(bg, cs);
59              cs = sc.boxCS(into, rotation, 100, 0, 50, 20);              cs = sc.boxCS(into, rotation, x, y, 50, 20);
60              sc.map.put(bg, cs);              sc.map.put(bg, cs);
61              StmtIterator i=focus.listProperties();              StmtIterator i=focus.listProperties();
             int y = 50;  
62              for(; i.hasNext();) {              for(; i.hasNext();) {
63                    y += 50;
64                  Statement s = i.next();                  Statement s = i.next();
65                  if(s.getObject().equals(rotation)) continue;                  if(s.getObject().equals(rotation)) continue;
66                  cs = sc.boxCS(into, s.getObject(), 100, y, 50, 20);                  cs = sc.boxCS(into, s.getObject(), x, y, 50, 20);
67                  sc.map.put(bg, cs);                  sc.map.put(bg, cs);
                 y += 50;  
68              }              }
69              i.close();              i.close();
70          } catch(RDFException e) {          } catch(RDFException e) {

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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