164 |
} |
} |
165 |
} |
} |
166 |
|
|
167 |
|
/** Place this layout strictly fitted into the given |
168 |
|
* box. |
169 |
|
*/ |
170 |
|
public void placeBoxed(VobScene vs, int into, float importance, float pixelscale) { |
171 |
|
int unit = vs.unitSqCS(into, "PSPCV.UNIT"); |
172 |
|
int scaled = vs.scaleCS(unit, "PSPCV.SCALED", |
173 |
|
1.0f / w, 1.0f / h); |
174 |
|
place(vs, scaled, importance, pixelscale); |
175 |
|
} |
176 |
|
|
177 |
|
|
178 |
} |
} |
179 |
|
|
197 |
*/ |
*/ |
198 |
public void place(Enfilade1D enf, VobScene vs, int into, |
public void place(Enfilade1D enf, VobScene vs, int into, |
199 |
float importance, float pixelscale) { |
float importance, float pixelscale) { |
200 |
getLayout(enf).place(vs, into, importance, pixelscale); |
getLayout(enf).placeBoxed(vs, into, importance, pixelscale); |
201 |
|
|
202 |
} |
} |
203 |
|
|
208 |
Layout l = getLayout( |
Layout l = getLayout( |
209 |
((VStreamCellTexter)c.space.getCellTexter()).getEnfilade(c, null) |
((VStreamCellTexter)c.space.getCellTexter()).getEnfilade(c, null) |
210 |
); |
); |
211 |
l.place( vs, box, .5f, 100); |
l.placeBoxed( vs, box, .5f, 100); |
212 |
} |
} |
213 |
public void getSize(Cell c, ViewContext context, float[] out) { |
public void getSize(Cell c, ViewContext context, float[] out) { |
214 |
getSize( |
getSize( |