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

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

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

revision 1.1 by benja, Fri Feb 28 17:41:28 2003 UTC revision 1.2 by benja, Tue Mar 4 10:50:43 2003 UTC
# Line 65  public class WheelView implements View { Line 65  public class WheelView implements View {
65          int midx = sc.size.width/2, midy = sc.size.height/2;          int midx = sc.size.width/2, midy = sc.size.height/2;
66          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,
67                                 1, 1, sizex, sizey);                                 1, 1, sizex, sizey);
68          nodeView.render(sc, cs, c.focus, 0);          nodeView.render(sc, cs, c.focus, null, 0);
69                    
70          int totpos = c.getConnections(1).size();          int totpos = c.getConnections(1).size();
71          int totneg = c.getConnections(-1).size();          int totneg = c.getConnections(-1).size();
# Line 83  public class WheelView implements View { Line 83  public class WheelView implements View {
83          int before = c.getRotationIndex(1);              int before = c.getRotationIndex(1);    
84          double cura = -(before * rota);          double cura = -(before * rota);
85          for(Iterator j=c.getConnections(1).iterator(); j.hasNext();) {          for(Iterator j=c.getConnections(1).iterator(); j.hasNext();) {
86              RDFNode node = (RDFNode)j.next();              Statement stmt = (Statement)j.next();
87                RDFNode node = stmt.getObject();
88              int cs2 = sc.orthoBoxCS(into, node, Math.abs(before),              int cs2 = sc.orthoBoxCS(into, node, Math.abs(before),
89                                      midx+x(cura, r)-sizex/2,                                      midx+x(cura, r)-sizex/2,
90                                      midy+y(cura, r)-sizey/2,                                      midy+y(cura, r)-sizey/2,
91                                      1, 1, sizex, sizey);                                      1, 1, sizex, sizey);
92              nodeView.render(sc, cs2, node, 1);              nodeView.render(sc, cs2, node, stmt.getPredicate(), 1);
93              sc.map.put(conn, cs, cs2);                  sc.map.put(conn, cs, cs2);    
94              cura+=rota;              cura+=rota;
95              before--;              before--;
# Line 98  public class WheelView implements View { Line 99  public class WheelView implements View {
99          before = c.getRotationIndex(-1);                  before = c.getRotationIndex(-1);        
100          cura = Math.PI-(before * rota);          cura = Math.PI-(before * rota);
101          for(Iterator j=c.getConnections(-1).iterator(); j.hasNext();) {          for(Iterator j=c.getConnections(-1).iterator(); j.hasNext();) {
102              RDFNode node = (RDFNode)j.next();              Statement stmt = (Statement)j.next();
103                RDFNode node = stmt.getSubject();
104              int cs2 = sc.orthoBoxCS(into, node, Math.abs(before),              int cs2 = sc.orthoBoxCS(into, node, Math.abs(before),
105                                      midx+x(cura, r)-sizex/2,                                      midx+x(cura, r)-sizex/2,
106                                      midy+y(cura, r)-sizey/2,                                      midy+y(cura, r)-sizey/2,
107                                      1, 1, sizex, sizey);                                      1, 1, sizex, sizey);
108              nodeView.render(sc, cs2, node, -1);              nodeView.render(sc, cs2, node, stmt.getPredicate(), -1);
109              sc.map.put(conn, cs2, cs);              sc.map.put(conn, cs2, cs);
110              cura+=rota;              cura+=rota;
111              before--;              before--;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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