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

Diff of /gzz/gzz/view/LinebrokenCellContentView.java

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

revision 1.23 by mudyc, Mon Jan 13 07:16:24 2003 UTC revision 1.24 by tjl, Tue Jan 14 13:36:06 2003 UTC
# Line 55  public static final String rcsid = "$Id$ Line 55  public static final String rcsid = "$Id$
55    
56      protected String widthString;      protected String widthString;
57    
58        protected boolean baselined = true;
59    
60      public LinebrokenCellContentView(TextStyle style) {      public LinebrokenCellContentView(TextStyle style) {
61          this(style, "XXXXXXXXXX");          this(style, "XXXXXXXXXX");
62      }      }
# Line 63  public static final String rcsid = "$Id$ Line 65  public static final String rcsid = "$Id$
65          this.style = style;          this.style = style;
66          this.widthString = widthString;          this.widthString = widthString;
67      }      }
68        public LinebrokenCellContentView(TextStyle style, String widthString, boolean baselined) {
69            this(style, widthString);
70            this.baselined = baselined;
71        }
72    
73      /** Get the height necessary to layout a range of text in a cell,      /** Get the height necessary to layout a range of text in a cell,
74       *  at a given width and scale.       *  at a given width and scale.
# Line 178  public static final String rcsid = "$Id$ Line 184  public static final String rcsid = "$Id$
184          s = s.substring(start, end);          s = s.substring(start, end);
185    
186          if(dbg) pa("addVobs: "+start+" "+end+" '"+s+"'");          if(dbg) pa("addVobs: "+start+" "+end+" '"+s+"'");
187          TextVob vob = new TextVob(style, s, true, key, textColor);          TextVob vob = new TextVob(style, s, baselined, key, textColor);
188          ch.addBox(vob);          ch.addBox(vob);
189      }      }
190  }  }

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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