ach
Class TiffyFrame

public class TiffyFrame
extends Frame
implements Runnable, Scrollable, ImgProdObserver, BatchPrinter
Method Detail

scrollAbs

public void scrollAbs(int x,
                      int y)
Implementation of Scrollable interface
Parameters:
x - absolute x-position of upper left edge of viewable rectangle
y - absolute y-position of upper left edge of viewable rectangle

zoom

public void zoom(double zoom)
set free defined zoomfactor calulate new image offset for centered image

zoom1To1

public void zoom1To1()
set 1:1 view (zoom factor 1) and calulate new image offset for centered image

toggleAnnotations

public void toggleAnnotations()
toggle display of annotations

setPageNum

boolean setPageNum(int pageNum)
for multi-document images step to indicated page for a slide sequence set slide index to indicated slide
Parameters:
pageNum - index of targeted page; counting starts with 1

updatePageNum

public void updatePageNum()
update pageNum text field and numpages label for a slide sequence set pageNum to slide index for a multi-document image set pageNum to page index

autoPrintImage

boolean autoPrintImage()
Print current image fitted into current printer's page dimension reported by the operating system minus margins stored in the properties "LEFTMARGIN", "RIGHTMARGIN", "TOPMARGIN" and "BOTTOMMARGIN" as integer values (1 unit = 1 cm / 1000 = 1 inch / 2540) Print to a (globally defined) instance of a PrintJob or PrinterJob

nextPageFromPrintPageSelection

int nextPageFromPrintPageSelection(String printPageSelection,
                                   int currentPage)
Determine next page number from a page numbers specification Example: Consecutive calls for "1;3;5-7" will return 1, 3, 5, 6, 7, -1
Parameters:
pageRange - specifies semicolon seperated pagenumbers or ranges
currentPage - specifies current page number
Returns:
vaid page number that is bigger than currentpage or -1

batchPrint

public void batchPrint(Object printJob,
                       int preferredResolution,
                       String printPageSelection)
Print all slides of a slide sequence and/or all pages of a multipage TIFF either to a PrintJob (JDK 1.1) or PrinterJob (Java 2) (determined by instanceof). Images are automatically scaled proportionally to fit into printers page size reported by the operating system minus margins stored in the properties "LEFTMARGIN", "RIGHTMARGIN", "TOPMARGIN" and "BOTTOMMARGIN" as integer values (1 unit = 1 cm / 1000 = 1 inch / 2540)
Parameters:
printJob - instance of PrintJob (e.g. instantiated by PrintDialog) or PrinterJob
preferredResolution - specifies the preferred print resolution (only used for MS IE)
pageRange - page numbers seperated by semicolons and low-high ranges like 1;2;8-10

closeNavDialog

void closeNavDialog()
close navigation dialog (if displayed)