JAVA Tech JAVA Technologies Co. Ltd. Marine Radio VERSION 3.0 Benutzerhandbuch

Seite von 88
 
 
35
35
35
35
 
setBackgroundImageEnabled(true/false) 
 
E.g. ViewONE.setBackgroundImageEnabled(false); 
This method is used to change the visibility of the COLD template image. A value of false 
will remove the template from view, and a value of true will show the template. 
 
isBackgroundImageEnabled() 
 
E.g. var inverted = ViewONE.isBackgroundImageEnabled(); 
Returns a Boolean ‘True’ if the COLD template is visible 
 
Example JavaScript for opening a document with background templates  
 
viewONE.initializeBackgroundImageArray(3)
 
viewONE.setBackgroundImageArrayItem("http://...backimage1.tif" ,0); 
viewONE.setBackgroundImageArrayItem("http://...backimage2.tif" ,1); 
viewONE.setBackgroundImageArrayItem("http://...backimage3.tif" ,2); 
viewONE.useBackgroundImageArray(1);  
  
viewONE.initializePageArray(3); 
viewONE.setPageArray("http://....page1.tiff", 0); 
viewONE.setPageArray("http://....page1.tif", 1); 
viewONE.setPageArray("http://....page1.tif", 2); 
 
viewONE.setAnnotationFile("http://...annotations.ant"); 
  
viewONE.openPageArray(1); //open at page 1 
 
Method: 
 
(Pro-Only) 
Method: 
 
(Pro-Only)