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 |
} |
} |
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. |
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 |
} |
} |