37 |
* Doesn't scroll, currently. |
* Doesn't scroll, currently. |
38 |
*/ |
*/ |
39 |
|
|
40 |
public class LinebrokenCellContentView implements CellContentView { |
public class LinebrokenCellContentView extends CellContentView { |
41 |
public static final String rcsid = "$Id$"; |
public static final String rcsid = "$Id$"; |
42 |
public static boolean dbg = false; |
public static boolean dbg = false; |
43 |
private static void p(String s) { if(dbg) pa(s); } |
private static void p(String s) { if(dbg) pa(s); } |
63 |
|
|
64 |
static Rectangle box = new Rectangle(); |
static Rectangle box = new Rectangle(); |
65 |
public void place(Cell c, VobScene vs, Box box, |
public void place(Cell c, VobScene vs, Box box, |
66 |
ViewContext context, float scale) { |
ViewContext context) { |
67 |
|
float scale = 1; // XXX getFontScale (see PEG vobcoorder_fontscale--tjl) |
68 |
HChain ch = getChain(c, scale); |
HChain ch = getChain(c, scale); |
69 |
if(dbg) pa(""+box.getWidth()); |
if(dbg) pa(""+box.getWidth()); |
70 |
HBroken br = breaker.breakLines(ch, box.getWidth(), scale); |
HBroken br = breaker.breakLines(ch, box.getWidth(), scale); |