JAVA Tech JAVA Technologies Co. Ltd. Marine Radio VERSION 3.0 Benutzerhandbuch
26
26
26
26
Specifying an Annotations File
setAnnotationFile(filename)
E.g. ViewONE.setAnnotationFile(“http://mysite/myannotations.ant”);
This method sets the annotation file and must be called before any of the open methods
described above.
described above.
If the current document is closed after this method has been called, the annotation file will
be reset. To avoid this, close the current document before setting the annotation file, as
closing of the current document can be a side effect of calling other JavaScript methods,
for example, ‘initializePageArray’.
be reset. To avoid this, close the current document before setting the annotation file, as
closing of the current document can be a side effect of calling other JavaScript methods,
for example, ‘initializePageArray’.
e.g.
viewONE.setAnnotationFile("http://...annotations.ant");
viewONE.openFile(“http://...mydocument.tif”, 1);
viewONE.openFile(“http://...mydocument.tif”, 1);
or
viewONE.closeDocument();
viewONE.setAnnotationFile("http://...annotations.ant");
viewONE.initializePageArray(2);
viewONE.setPageArray("http://....page1.tiff", 0);
viewONE.setPageArray("http://....page2.tif", 1);
viewONE.openPageArray(1);
viewONE.setAnnotationFile("http://...annotations.ant");
viewONE.initializePageArray(2);
viewONE.setPageArray("http://....page1.tiff", 0);
viewONE.setPageArray("http://....page2.tif", 1);
viewONE.openPageArray(1);
Method: