87 |
else textOffset = (- left + middle); |
else textOffset = (- left + middle); |
88 |
|
|
89 |
Object key = (line < KEY.length) ? KEY[line] : new Integer(line+1); |
Object key = (line < KEY.length) ? KEY[line] : new Integer(line+1); |
90 |
int offsetcs = v.coordsys(box.getWHCoordsys(), key, 0, textOffset, 0, 1, 1); |
int offsetcs = v.orthoCS(box.getWHCoordsys(), key, 0, textOffset, 0, 1, 1); |
91 |
|
|
92 |
placeVob(c, v, offsetcs, box.getWidth(), box.getHeight(), brBefore, brAfter, offs, context, scale); |
placeVob(c, v, offsetcs, box.getWidth(), box.getHeight(), brBefore, brAfter, offs, context, scale); |
93 |
} |
} |
96 |
protected void placeVob(Cell c, VobScene v, int cs, float w, float h, int start, int end, |
protected void placeVob(Cell c, VobScene v, int cs, float w, float h, int start, int end, |
97 |
int offs, ViewContext context, float scale) { |
int offs, ViewContext context, float scale) { |
98 |
TextVob vob = new TextVob(style, c.t().substring(start, end)); |
TextVob vob = new TextVob(style, c.t().substring(start, end)); |
99 |
int cs_wh = v.coords.coordsys(0, 0, 0, 0, w, h); |
int cs_wh = v.coords.ortho(0, 0, 0, 0, w, h); |
100 |
((DefaultVobMatcher)v.matcher).addSub(cs, cs_wh, WH_KEY); |
((DefaultVobMatcher)v.matcher).addSub(cs, cs_wh, WH_KEY); |
101 |
v.map.put(vob, cs, cs_wh); |
v.map.put(vob, cs, cs_wh); |
102 |
|
|