31 |
import java.awt.*; |
import java.awt.*; |
32 |
|
|
33 |
/** A page span - contiguous piece of a permascroll consisting of |
/** A page span - contiguous piece of a permascroll consisting of |
34 |
* pages of the same size - e.g.postscript or pdf file. |
* pages - e.g.postscript or pdf file. |
35 |
* These spans are rectangular regions of one or more pages. |
* These spans are regions of one or more pages. |
36 |
* <p> |
* It used to be possible to also specify an area here - not any |
37 |
* ImageSpan.getImage should return the image of a page when a single |
* more: now, you can either have a pagespan of pages, or an imagespan |
38 |
* page is in the span, calling getImage for a PageSpan of more than one |
* of an area on one page. |
|
* page is currently undefined (!!), waiting for a decision between showing |
|
|
* the first page, the first page in a graphical representation showing |
|
|
* a stack of pages, some type of splicing of the pages or whatever. |
|
|
* It is also possible that it will be decided that an IllegalArgumentException |
|
|
* should be thrown in this case. |
|
39 |
*/ |
*/ |
40 |
|
|
41 |
public interface PageSpan extends ImageSpan, Span1D { |
public interface PageSpan extends Span1D { |
42 |
/** Get a subspan of the current span. |
/** Get the imagespan pointing to the given page |
43 |
* The coordinates are <b>relative to this span</b>. |
* of this span. |
44 |
*/ |
*/ |
45 |
PageSpan subArea(int page0, int page1, int x, int y, int w, int h); |
ImageSpan getPage(int ind); |
|
PageSpan subArea(int page0, int page1); |
|
46 |
} |
} |
47 |
|
|