/[gzz]/gzz/gzz/view/TextCellContentView.java
ViewVC logotype

Diff of /gzz/gzz/view/TextCellContentView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by tjl, Mon Oct 14 10:11:13 2002 UTC revision 1.18 by tjl, Tue Oct 15 13:29:18 2002 UTC
# Line 87  public static final String rcsid = "$Id$ Line 87  public static final String rcsid = "$Id$
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      }      }
# Line 96  public static final String rcsid = "$Id$ Line 96  public static final String rcsid = "$Id$
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    

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26