/[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.25 by benja, Sat Nov 23 12:24:58 2002 UTC revision 1.26 by benja, Sat Nov 23 13:44:20 2002 UTC
# Line 52  public static final String rcsid = "$Id$ Line 52  public static final String rcsid = "$Id$
52          this.style = style;          this.style = style;
53      }      }
54    
55      public void getSize(Cell c, float[] out) {      public void getSize(Cell c, float scale, ViewContext context,
56          String s = c.t();                          float[] out) {
57          out[0] = style.getWidth(s, 1);          String s;
58          out[1] = style.getHeight(1);          if(c != null)
59                s = c.t();
60            else
61                s = "XXXXXXXXXXXX";
62            out[0] = style.getWidth(s, scale) / scale;
63            out[1] = style.getHeight(scale) / scale;
64      }      }
65    
66      float[] boxwh = new float[2];      float[] boxwh = new float[2];

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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