/[fenfire]/fenfire/org/fenfire/view/PageSpanLayout.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/PageSpanLayout.java

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

revision 1.23 by tjl, Thu Aug 14 07:32:55 2003 UTC revision 1.24 by tjl, Mon Aug 18 07:49:25 2003 UTC
# Line 236  public class PageSpanLayout Line 236  public class PageSpanLayout
236    
237          float w = 0;          float w = 0;
238    
239            if(dbg) p("getSelection: "+x+" "+y+" "+width+" "+height);
240    
241          // Go into page where selection starts          // Go into page where selection starts
242          for (int p = 0; p<pages.length; p++)  {          for (int p = 0; p<pages.length; p++)  {
243              // Vob coordinates of the intersecting rectangle              // Vob coordinates of the intersecting rectangle
# Line 247  public class PageSpanLayout Line 249  public class PageSpanLayout
249              sx1 = x + width - xywh[4*p] - w;              sx1 = x + width - xywh[4*p] - w;
250              sy1 = y + height - xywh[4*p + 1];              sy1 = y + height - xywh[4*p + 1];
251    
252                if(dbg) p("Page "+p+": "+sx0+" "+sy0+" "+sx1+" "+sy1+" - "+
253                            xywh[4*p+2]);
254    
255              w += xywh[4*p + 2];              w += xywh[4*p + 2];
256    
257              int rx0, rx1, ry0, ry1;              int rx0, rx1, ry0, ry1;
# Line 256  public class PageSpanLayout Line 261  public class PageSpanLayout
261              rx1 = spivs[p].getSpanX(sx1);              rx1 = spivs[p].getSpanX(sx1);
262              ry1 = spivs[p].getSpanY(sy1);              ry1 = spivs[p].getSpanY(sy1);
263    
264                if(dbg) p(": "+rx0+" "+ry0+" "+rx1+" "+ry1+" - ");
265    
266              if(rx0 < 0) rx0 = 0;              if(rx0 < 0) rx0 = 0;
267              if(ry0 < 0) ry0 = 0;              if(ry0 < 0) ry0 = 0;
268    
# Line 268  public class PageSpanLayout Line 275  public class PageSpanLayout
275              if(rx1 >= d.width) rx1 = d.width - 1;              if(rx1 >= d.width) rx1 = d.width - 1;
276              if(ry1 >= d.height) ry1 = d.height - 1;              if(ry1 >= d.height) ry1 = d.height - 1;
277    
278                if(dbg) p("final: "+rx0+" "+ry0+" "+rx1+" "+ry1+" - ");
279    
280              enf = enf.plus(enfilade1DMaker.makeEnfilade(pages[p].subArea(rx0,ry0, rx1-rx0, ry1-ry0)));              enf = enf.plus(enfilade1DMaker.makeEnfilade(pages[p].subArea(rx0,ry0, rx1-rx0, ry1-ry0)));
281          }          }
282          return enf;          return enf;

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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