/[alph]/alph/org/nongnu/alph/impl/PageImageScroll.java
ViewVC logotype

Diff of /alph/org/nongnu/alph/impl/PageImageScroll.java

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

revision 1.7 by tjl, Mon Apr 21 19:33:30 2003 UTC revision 1.8 by benja, Tue Apr 22 11:37:29 2003 UTC
# Line 111  String rcsid = "$Id$"; Line 111  String rcsid = "$Id$";
111          return new StdPageSpan(this, p0, p1);          return new StdPageSpan(this, p0, p1);
112      }      }
113    
114      private static class PageImageSpan extends AbstractImageSpan {      private static class PageImageSpanImpl
115            extends AbstractImageSpan implements PageImageSpan {
116          int page;          int page;
117    
118          protected AbstractImageSpan          protected AbstractImageSpan
119                  createNew(int x, int y, int w, int h) {                  createNew(int x, int y, int w, int h) {
120              return new PageImageSpan(scrollBlock, page, x, y, w, h);              return new PageImageSpanImpl(scrollBlock, page, x, y, w, h);
121          }          }
122          public PageImageSpan(ScrollBlock sb, int page, int x, int y, int w, int h) {          public PageImageSpanImpl(ScrollBlock sb, int page, int x, int y, int w, int h) {
123              super(sb, x, y, w, h);              super(sb, x, y, w, h);
124              this.page = page;              this.page = page;
   
125          }          }
126            public int getPageIndex() { return page; }
127      }      }
128    
129      public ImageSpan getPage(int p) {      public PageImageSpan getPage(int p) {
130          return new PageImageSpan(this, p, 0, 0, WIDTH, HEIGHT);          return new PageImageSpanImpl(this, p, 0, 0, WIDTH, HEIGHT);
131      }      }
132    
133    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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