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 |
|
|