94 |
|
|
95 |
static Rectangle box = new Rectangle(); |
static Rectangle box = new Rectangle(); |
96 |
float[] boxwh = new float[2], xoffsarr = new float[1]; |
float[] boxwh = new float[2], xoffsarr = new float[1]; |
97 |
|
|
98 |
|
public void place(Cell c, VobScene vs, int box, |
99 |
|
ViewContext context) { |
100 |
|
place(c,vs,box,context, null); |
101 |
|
} |
102 |
|
private String textColor; |
103 |
public void place(Cell c, VobScene vs, int box, |
public void place(Cell c, VobScene vs, int box, |
104 |
ViewContext context) { |
ViewContext context, String textColor) { |
105 |
|
this.textColor = textColor; |
106 |
float scale = 1; // XXX getFontScale (see PEG vobcoorder_fontscale--tjl) |
float scale = 1; // XXX getFontScale (see PEG vobcoorder_fontscale--tjl) |
107 |
vs.coords.getSqSize(box, boxwh); |
vs.coords.getSqSize(box, boxwh); |
108 |
if(dbg) pa(""+boxwh[0]); |
if(dbg) pa(""+boxwh[0]); |
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); |
TextVob vob = new TextVob(style, s, true, key, textColor); |
188 |
ch.addBox(vob); |
ch.addBox(vob); |
189 |
} |
} |
190 |
} |
} |