120 |
* @param v The vobscene to add to |
* @param v The vobscene to add to |
121 |
* @param cs The coordinate system index |
* @param cs The coordinate system index |
122 |
*/ |
*/ |
123 |
public void addCellVobs(Cell c, VobScene v, int cs, Vob content, |
public void addCellVobs(final Cell c, final VobScene v, int cs, final Vob content, |
124 |
ViewContext context, float scale) { |
final ViewContext context, final float scale) { |
125 |
if(d_clone == null) |
if(d_clone == null) |
126 |
throw new NullPointerException("clone dim not set in CellVobFactory"); |
throw new NullPointerException("clone dim not set in CellVobFactory"); |
127 |
|
|
128 |
RectBgVob bg = new RectBgVob(); |
final RectBgVob bg = new RectBgVob(); |
129 |
|
|
130 |
List cursorColors = context.getCursorColors(c); |
List cursorColors = context.getCursorColors(c); |
131 |
if(cursorColors != null) |
if(cursorColors != null) |
161 |
|
|
162 |
Vob.RenderInfo info = v.coords.getRenderInfo(cs); |
Vob.RenderInfo info = v.coords.getRenderInfo(cs); |
163 |
info.getExtRect(rect); |
info.getExtRect(rect); |
164 |
int content_cs = v.coords.coordsys(cs, CONTENT_KEY, 0, 5, 5, |
final int content_cs = v.coords.coordsys(cs, CONTENT_KEY, 0, 5, 5, |
165 |
rect.width-10, rect.height-10); |
rect.width-10, rect.height-10); |
166 |
|
|
167 |
if(content != null) |
gzz.gfx.gl.Stencil.drawStenciled( |
168 |
v.map.put(content, content_cs); |
v, |
169 |
else |
new Runnable() { public void run() { |
170 |
ccv.place(c, v, content_cs, context, scale); |
v.map.put(bg, content_cs); |
171 |
|
}}, |
172 |
|
null, |
173 |
|
null, |
174 |
|
new Runnable() { public void run() { |
175 |
|
if(content != null) |
176 |
|
v.map.put(content, content_cs); |
177 |
|
else |
178 |
|
ccv.place(c, v, content_cs, context, scale); |
179 |
|
}}, |
180 |
|
false |
181 |
|
); |
182 |
} |
} |
183 |
} |
} |