63 |
|
|
64 |
public void render(VobScene sc, int into, Cursor c) { |
public void render(VobScene sc, int into, Cursor c) { |
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, |
NodeView.Nodespec spec = new NodeView.Nodespec(c.focus); |
67 |
|
int cs = sc.orthoBoxCS(into, spec, 0, midx-sizex/2, midy-sizey/2, |
68 |
1, 1, sizex, sizey); |
1, 1, sizex, sizey); |
69 |
sc.coords.activate(cs); |
sc.coords.activate(cs); |
70 |
nodeView.render(sc, cs, c.focus, null, 0); |
nodeView.render(sc, cs, spec); |
71 |
|
|
72 |
int totpos = c.getConnections(1).size(); |
int totpos = c.getConnections(1).size(); |
73 |
int totneg = c.getConnections(-1).size(); |
int totneg = c.getConnections(-1).size(); |
87 |
for(Iterator j=c.getConnections(1).iterator(); j.hasNext();) { |
for(Iterator j=c.getConnections(1).iterator(); j.hasNext();) { |
88 |
Statement stmt = (Statement)j.next(); |
Statement stmt = (Statement)j.next(); |
89 |
RDFNode node = stmt.getObject(); |
RDFNode node = stmt.getObject(); |
90 |
int cs2 = sc.orthoBoxCS(into, node, Math.abs(before), |
spec = new NodeView.Nodespec(node, stmt.getPredicate(), 1); |
91 |
|
int cs2 = sc.orthoBoxCS(into, spec, Math.abs(before), |
92 |
midx+x(cura, r)-sizex/2, |
midx+x(cura, r)-sizex/2, |
93 |
midy+y(cura, r)-sizey/2, |
midy+y(cura, r)-sizey/2, |
94 |
1, 1, sizex, sizey); |
1, 1, sizex, sizey); |
95 |
sc.coords.activate(cs2); |
sc.coords.activate(cs2); |
96 |
nodeView.render(sc, cs2, node, stmt.getPredicate(), 1); |
nodeView.render(sc, cs2, spec); |
97 |
|
|
98 |
sc.map.put(conn, cs, cs2); |
sc.map.put(conn, cs, cs2); |
99 |
cura+=rota; |
cura+=rota; |
100 |
before--; |
before--; |
106 |
for(Iterator j=c.getConnections(-1).iterator(); j.hasNext();) { |
for(Iterator j=c.getConnections(-1).iterator(); j.hasNext();) { |
107 |
Statement stmt = (Statement)j.next(); |
Statement stmt = (Statement)j.next(); |
108 |
RDFNode node = stmt.getSubject(); |
RDFNode node = stmt.getSubject(); |
109 |
int cs2 = sc.orthoBoxCS(into, node, Math.abs(before), |
spec = new NodeView.Nodespec(node, stmt.getPredicate(), -1); |
110 |
|
int cs2 = sc.orthoBoxCS(into, spec, Math.abs(before), |
111 |
midx+x(cura, r)-sizex/2, |
midx+x(cura, r)-sizex/2, |
112 |
midy+y(cura, r)-sizey/2, |
midy+y(cura, r)-sizey/2, |
113 |
1, 1, sizex, sizey); |
1, 1, sizex, sizey); |
114 |
sc.coords.activate(cs2); |
sc.coords.activate(cs2); |
115 |
nodeView.render(sc, cs2, node, stmt.getPredicate(), -1); |
nodeView.render(sc, cs2, spec); |
116 |
sc.map.put(conn, cs2, cs); |
sc.map.put(conn, cs2, cs); |
117 |
cura+=rota; |
cura+=rota; |
118 |
before--; |
before--; |