JAVA Tech VERSION 3.0 Marine Radio User Manual


 
21
2121
21
initializePageAndThumbsArray(numPages)
setPageArray(filename, page)
setThumbsArray(filename, page)
openPageArray(page)
E.g.
ViewONE.initializePageAndThumbsArray(3);
ViewONE.setPageArray(“page1.tif”, 0);
ViewONE.setThumbsArray(“page1-t.tif”, 0);
ViewONE.setPageArray(“page2.tif”, 1);
ViewONE.setThumbsArray(“page2-t.tif”, 1);
ViewONE.setPageArray(“page3.tif”, 2);
ViewONE.setThumbsArray(“page3-t.tif”, 2);
ViewONE.openPageArray(1);
These methods are similar to the previous. They specify the number files (pages) in a list,
and then specify a separate file for each page and a thumbnail file for that page. The final
method then opens the “assembled” document at page 1. Note, the page array begins at
array element zero.
In some instances, it may be advantageous to have separate files for the thumbnails to
assist in browsing of thumbnails (smaller files are quicker to download and view).
Initializing the page anf thumb arrays causes a ‘soft’ close to be performed, i.e. the current
document is closed and the annotation source, templates and background images are
reset if a document is currently open. If no document is currently open, then the close and
reset is not performed.
Method
Group: