/[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.4 by benja, Tue Apr 22 11:49:10 2003 UTC revision 1.5 by benja, Thu Apr 24 17:53:32 2003 UTC
# Line 13  import org.nongnu.alph.*; Line 13  import org.nongnu.alph.*;
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    
# Line 41  public class PageSpanLayout { Line 43  public class PageSpanLayout {
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       */       */
# Line 108  public class PageSpanLayout { Line 110  public class PageSpanLayout {
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    
# Line 145  public class PageSpanLayout { Line 154  public class PageSpanLayout {
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);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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