13 |
|
|
14 |
/** A single pagespan enfilade laid out on the plane. |
/** A single pagespan enfilade laid out on the plane. |
15 |
*/ |
*/ |
16 |
public class PageSpanLayout { |
public class PageSpanLayout |
17 |
|
implements org.nongnu.libvob.lava.placeable.Placeable { |
18 |
|
|
19 |
public static boolean dbg = false; |
public static boolean dbg = false; |
20 |
private void pa(String s) { System.out.println(s); } |
private void pa(String s) { System.out.println(s); } |
21 |
|
|
43 |
private PageSpanPaper[] psps; |
private PageSpanPaper[] psps; |
44 |
private float[] xywh; |
private float[] xywh; |
45 |
|
|
46 |
public float w; // XXX Kludge to be public |
private float w; // XXX Kludge to be public |
47 |
public float h; |
private float h; |
48 |
|
|
49 |
/** Allocate the structure to hold a given number of pages. |
/** Allocate the structure to hold a given number of pages. |
50 |
*/ |
*/ |
110 |
for(int p = 0; p < npages; p++) { |
for(int p = 0; p < npages; p++) { |
111 |
page(p, sp.getPage(p), maker); |
page(p, sp.getPage(p), maker); |
112 |
} |
} |
113 |
|
} |
114 |
|
|
115 |
|
public PageSpanLayout(PageImageSpan sp) { |
116 |
|
this(sp, defaultPageSpanPaperMaker); |
117 |
|
} |
118 |
|
|
119 |
|
public PageSpanLayout(PageImageSpan sp, PageSpanPaperMaker maker) { |
120 |
|
page(0, sp, maker); |
121 |
} |
} |
122 |
|
|
123 |
|
|
154 |
return null; |
return null; |
155 |
} |
} |
156 |
|
|
157 |
|
public float getWidth() { return w; } |
158 |
|
public float getHeight() { return h; } |
159 |
|
|
160 |
|
public void place(VobScene vs, int into) { |
161 |
|
place(vs, into, .0001f, 1f, -1); |
162 |
|
} |
163 |
|
|
164 |
public void place(VobScene vs, int into, float importance, float pixelscale) { |
public void place(VobScene vs, int into, float importance, float pixelscale) { |
165 |
|
|
166 |
place(vs, into, importance, pixelscale, -1); |
place(vs, into, importance, pixelscale, -1); |