53 |
java.awt.Dimension outer = vs.getSize(); |
java.awt.Dimension outer = vs.getSize(); |
54 |
|
|
55 |
float x = outer.width - w - PAD, |
float x = outer.width - w - PAD, |
56 |
y = outer.height - h - PAD; |
y = outer.height - h - PAD * n; |
57 |
|
|
58 |
int cs_list = vs.orthoCS(into, KEY, 0, x, y, 2, 2); |
int cs_list = vs.orthoBoxCS(into, KEY, 0, x, y, 1, 1, w, h); |
59 |
|
|
60 |
for(int i=0; i<n; i++) { |
for(int i=0; i<n; i++) { |
61 |
Mark m = (Mark)DefaultBinder.marks.get(i); |
Mark m = (Mark)DefaultBinder.marks.get(i); |
62 |
if(m.spans != null) return; // for now-- should show span(s) |
if(m.spans != null) return; // for now-- should show span(s) |
63 |
Cell c = m.cell; |
Cell c = m.cell; |
64 |
|
|
65 |
int box = vs.orthoBoxCS(cs_list, c, 0, 0, i*w, 1, 1, w, h); |
/* int box = vs.orthoBoxCS(cs_list, c, 0, 0, i*w, 1, 1, w, h); */ |
66 |
|
int box = vs.orthoBoxCS(cs_list, c, 0, 0, i*(h/n+PAD), 1, 1, w, h/n); |
67 |
cv.place(c, vs, box, win); |
cv.place(c, vs, box, win); |
68 |
} |
} |
69 |
|
|
73 |
if(w > size[0]) |
if(w > size[0]) |
74 |
x += size[0] - w; |
x += size[0] - w; |
75 |
|
|
76 |
int cs = vs.orthoCS(into, TEXT_KEY, 0, x, y, 2, 2); |
int cs = vs.orthoCS(into, TEXT_KEY, 0, x, y, h, h); |
77 |
vs.map.put(new TextVob(style, str), cs); |
vs.map.put(new TextVob(style, str), cs); |
78 |
} |
} |
79 |
} |
} |