/[fenfire]/fenfire/org/fenfire/util/PageSpanPaper.java
ViewVC logotype

Diff of /fenfire/org/fenfire/util/PageSpanPaper.java

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

revision 1.1 by tjl, Wed Mar 26 18:15:10 2003 UTC revision 1.2 by tjl, Thu Mar 27 09:00:39 2003 UTC
# Line 38  public class PageSpanPaper { Line 38  public class PageSpanPaper {
38      public static boolean dbg = false;      public static boolean dbg = false;
39      private static void pa(String s) { System.out.println(s); }      private static void pa(String s) { System.out.println(s); }
40    
41  //    public static gzz.gfx.gl.PaperMill paperMill;      public static org.nongnu.libvob.gl.PaperMill paperMill;
42  //    public static gzz.client.GraphicsAPI.RenderingSurface paperMillWindow;      public static org.nongnu.libvob.GraphicsAPI.RenderingSurface paperMillWindow;
43    
44      /** The page is in the range (0,0)..(w,h) in paper coordinates.      /** The page is in the range (0,0)..(w,h) in paper coordinates.
45       */       */
# Line 128  public class PageSpanPaper { Line 128  public class PageSpanPaper {
128    
129      }      }
130    
     /*  
131      private Paper getBg() {      private Paper getBg() {
132          if(bg == null) {          if(bg == null) {
133              if(paperMill == null)              if(paperMill == null)
# Line 137  public class PageSpanPaper { Line 136  public class PageSpanPaper {
136          }          }
137          return bg;          return bg;
138      }      }
     */  
139    
140      public Paper getPaper(boolean withBackground) {      public Paper getPaper(boolean withBackground) {
141          return getPaper(withBackground, true);          return getPaper(withBackground, true);
142      }      }
143      public Paper getPaper(boolean withBackground, boolean withSpan) {      public Paper getPaper(boolean withBackground, boolean withSpan) {
         /*  
144          if(!withSpan) {          if(!withSpan) {
145              if(!withBackground) throw new Error("Can't do without both");              if(!withBackground) throw new Error("Can't do without both");
146              return getBg();              return getBg();
# Line 200  public class PageSpanPaper { Line 197  public class PageSpanPaper {
197                  return bgPaper;                  return bgPaper;
198              }              }
199          } else {          } else {
         */  
200              if(noBgPaper == null) {              if(noBgPaper == null) {
201                  noBgPaper = new Paper();                  noBgPaper = new Paper();
202                  addPaperPass(noBgPaper, setupOnlyPass);                  addPaperPass(noBgPaper, setupOnlyPass);
203    
204              }              }
205              return noBgPaper;              return noBgPaper;
206          // }          }
207      }      }
208    
209      public void request(float importance, float pixels) {      public void request(float importance, float pixels) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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