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) { |