/[gzz]/gzz/gzz/view/PageSpanCellView.java
ViewVC logotype

Diff of /gzz/gzz/view/PageSpanCellView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by tjl, Thu Feb 6 09:19:40 2003 UTC revision 1.14 by tjl, Thu Feb 6 12:27:59 2003 UTC
# Line 164  public class PageSpanCellView extends Ce Line 164  public class PageSpanCellView extends Ce
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    
# Line 187  public class PageSpanCellView extends Ce Line 197  public class PageSpanCellView extends Ce
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    
# Line 198  public class PageSpanCellView extends Ce Line 208  public class PageSpanCellView extends Ce
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(

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26