gzz.media
Interface PageSpan

gzz.media.Span gzz.media.Enfilade1D gzz.media.Span1D gzz.media.TextSpan gzz.media.ImageSpan gzz.media.PageSpan gzz.media.VideoSpan gzz.media.AudioSpan gzz.media.ScrollBlock ../../../Gzz_CoreAPIs.gen.html#media media_small
All Superinterfaces:
ImageSpan, Span, Span1D
All Known Implementing Classes:
ScrollBlockManager.PageSpanBase

public interface PageSpan
extends ImageSpan, Span1D

A page span - contiguous piece of a permascroll consisting of pages of the same size - e.g.postscript or pdf file. These spans are rectangular regions of one or more pages.

ImageSpan.getImage should return the image of a page when a single page is in the span, calling getImage for a PageSpan of more than one 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.


Field Summary
 
Fields inherited from interface gzz.media.Span
rcsid
 
Fields inherited from interface gzz.media.Span1D
rcsid
 
Method Summary
 PageSpan subArea(int page0, int page1)
           
 PageSpan subArea(int page0, int page1, int x, int y, int w, int h)
          Get a subspan of the current span.
 
Methods inherited from interface gzz.media.ImageSpan
getLocation, getSize, subArea
 
Methods inherited from interface gzz.media.Span
getScrollBlock, intersects, toString
 
Methods inherited from interface gzz.media.Span1D
append, getRelativeEnd, getRelativeStart, length, offset, subSpan, subSpan
 

Method Detail

subArea

public PageSpan subArea(int page0,
                        int page1,
                        int x,
                        int y,
                        int w,
                        int h)
Get a subspan of the current span. The coordinates are relative to this span.


subArea

public PageSpan subArea(int page0,
                        int page1)