eu.livotov.tpt.gui.vdv.formats
Class ImageFolderDocument

java.lang.Object
  extended by eu.livotov.tpt.gui.vdv.formats.ImageFolderDocument
All Implemented Interfaces:
DocumentRasterProvider

public class ImageFolderDocument
extends java.lang.Object
implements DocumentRasterProvider

Author:
dlivotov

Field Summary
private  java.lang.String documentId
           
private  boolean hasFacingPage
           
private  java.io.File imagesFolder
           
private  java.util.Map<java.lang.String,RasterizedPageProperties> pageProperties
           
private  java.util.List<java.io.File> pages
           
private  int pagesCount
           
 
Constructor Summary
ImageFolderDocument(java.io.File folder)
           
 
Method Summary
 void closeDocument()
           
 java.lang.String getDocumentId()
           
 java.io.InputStream getPageData(int pageNumber, float zoomLevel, int rotationLevel)
           
 RasterizedPageProperties getPageProperties(int pageNumber, float zoomLevel, int rotationLevel)
           
 int getPagesCount()
           
 boolean hasFacingPage()
           
private  void loadData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imagesFolder

private java.io.File imagesFolder

pagesCount

private int pagesCount

hasFacingPage

private boolean hasFacingPage

documentId

private java.lang.String documentId

pages

private java.util.List<java.io.File> pages

pageProperties

private java.util.Map<java.lang.String,RasterizedPageProperties> pageProperties
Constructor Detail

ImageFolderDocument

public ImageFolderDocument(java.io.File folder)
Method Detail

getDocumentId

public java.lang.String getDocumentId()
Specified by:
getDocumentId in interface DocumentRasterProvider

getPagesCount

public int getPagesCount()
Specified by:
getPagesCount in interface DocumentRasterProvider

getPageData

public java.io.InputStream getPageData(int pageNumber,
                                       float zoomLevel,
                                       int rotationLevel)
Specified by:
getPageData in interface DocumentRasterProvider

loadData

private void loadData()

getPageProperties

public RasterizedPageProperties getPageProperties(int pageNumber,
                                                  float zoomLevel,
                                                  int rotationLevel)
Specified by:
getPageProperties in interface DocumentRasterProvider

hasFacingPage

public boolean hasFacingPage()

closeDocument

public void closeDocument()
Specified by:
closeDocument in interface DocumentRasterProvider