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); } |
44 |
private static void pa(String s) { System.err.println(s); } |
private static void pa(String s) { System.err.println(s); } |
45 |
|
|
46 |
|
static Object ARGH_KEY = new Object(); |
47 |
|
|
48 |
TextStyle style; |
TextStyle style; |
49 |
SimpleLinebreaker breaker = new SimpleLinebreaker(); |
SimpleLinebreaker breaker = new SimpleLinebreaker(); |
66 |
HChain ch = getChain(c, scale); |
HChain ch = getChain(c, scale); |
67 |
if(dbg) pa(""+w); |
if(dbg) pa(""+w); |
68 |
HBroken br = breaker.breakLines(ch, w, scale); |
HBroken br = breaker.breakLines(ch, w, scale); |
69 |
br.put(vs, coordsys_box); |
|
70 |
|
//argh! |
71 |
|
int cs = vs.coords.coordsys(coordsys_outside, 0, x, y, 2, 2); |
72 |
|
((DefaultVobMatcher)vs.matcher).addSub(coordsys_box, cs, ARGH_KEY); |
73 |
|
|
74 |
|
br.put(vs, coordsys_outside, cs); |
75 |
} |
} |
76 |
|
|
77 |
protected HChain getChain(Cell c, float scale) { |
protected HChain getChain(Cell c, float scale) { |