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(); |
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--; |
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--; |