gzz.media.impl
Class PageImageScroll

java.lang.Object
  |
  +--gzz.media.impl.PageImageScroll
All Implemented Interfaces:
ScrollBlock, ScrollBlockManager.MediaserverScrollBlock

public class PageImageScroll
extends java.lang.Object
implements ScrollBlockManager.MediaserverScrollBlock

An scrollblock containing paged media (PS/PDF).


Field Summary
static boolean dbg
           
 
Fields inherited from interface gzz.media.ScrollBlock
rcsid
 
Constructor Summary
PageImageScroll(Mediaserver ms, Mediaserver.Id id)
           
 
Method Summary
 float coordinateResolution()
          The resolution of the coordinates on the original paper.
 boolean equals(java.lang.Object o)
           
 void forcelengthKLUDGE(int len)
          DO NOT USE EXCEPT WHEN CREATING FAKE PAGESPANS FOR TESTS.
 Span getCurrent()
          Get the current contents of this block as a single span of the appropriate type.
 java.lang.String getID()
          Get the globally unique identifier of this block.
 Span getSpan(int p0, int p1, int x, int y, int w, int h)
           
 int hashCode()
           
 java.lang.String imageFilename(int page)
          Return the image file name for the given, 0-based page.
 float imageFileResolution(int page)
          The resolution of the images.
 boolean isFinalized()
          Whether this block has been finalized or whether more can be appended.
 Mediaserver.Id saveOrGetId(Mediaserver ms)
          Get the Mediaserver id of this block; save when not saved yet.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbg

public static boolean dbg
Constructor Detail

PageImageScroll

public PageImageScroll(Mediaserver ms,
                       Mediaserver.Id id)
Method Detail

getID

public java.lang.String getID()
Description copied from interface: ScrollBlock
Get the globally unique identifier of this block. XXX Exact semantics, tmp ids

Specified by:
getID in interface ScrollBlock

saveOrGetId

public Mediaserver.Id saveOrGetId(Mediaserver ms)
Description copied from interface: ScrollBlockManager.MediaserverScrollBlock
Get the Mediaserver id of this block; save when not saved yet.

Specified by:
saveOrGetId in interface ScrollBlockManager.MediaserverScrollBlock

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

imageFilename

public java.lang.String imageFilename(int page)
Return the image file name for the given, 0-based page.


imageFileResolution

public float imageFileResolution(int page)
The resolution of the images.


coordinateResolution

public float coordinateResolution()
The resolution of the coordinates on the original paper.


forcelengthKLUDGE

public void forcelengthKLUDGE(int len)
DO NOT USE EXCEPT WHEN CREATING FAKE PAGESPANS FOR TESTS.


getCurrent

public Span getCurrent()
Description copied from interface: ScrollBlock
Get the current contents of this block as a single span of the appropriate type.

Specified by:
getCurrent in interface ScrollBlock

getSpan

public Span getSpan(int p0,
                    int p1,
                    int x,
                    int y,
                    int w,
                    int h)

isFinalized

public boolean isFinalized()
Description copied from interface: ScrollBlock
Whether this block has been finalized or whether more can be appended.

Specified by:
isFinalized in interface ScrollBlock