JAVA Tech nologies Co. Ltd. Marine Radio VERSION 3.0 Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro ne JAVA Tech nologies Co. Ltd. Marine Radio VERSION 3.0. JAVA Tech nologies Co. Ltd. Marine Radio VERSION 3.0 User's Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk

Shrnutí obsahu

Strany 1

ViewONE JavaScript API Manual Version 3.0 Last Updated: 04th May 2005 Copyright Daeja Image Systems. All Rights Reserv

Strany 2 - Contents

10101010ViewONE Pro If you have downloaded ViewONE Pro (with or without the Print Accelerator, Annotations, DjVu, PDF or other optional modules), t

Strany 3 - DAEJA IMAGE SYSTEMS

11111111 Apple Macintosh users (HTML) ViewONE comes with a digital certificate which is required to permit the applet to print and provide local c

Strany 4

12121212 Setting up Windows 2003 server If your server is running Windows 2003 with IIS 6, you will have to add two file extensions to your web si

Strany 5

13131313Click on the properties menu to display the properties dialog… Click on the MIME Type button to display the MIME Type dialog… Use t

Strany 6

14141414 Click OK until you return back to the main console dialog. Right click once again on the main web space entry. Click on the Restart IIS

Strany 7 - Introduction

15151515 ViewONE JavaScript Overview The ViewONE Javascript API offers an alternative mechanism to configure and control the ViewONE applet. In man

Strany 8 - The Applet user interface

16161616JavaScript Reference The JavaScript examples in this manual do not refer to their use in any particular context. The examples could be used

Strany 9 - Installing ViewONE

17171717 General Applet Control isReady() E.g. var ready = ViewONE.isReady(); This method returns true if the applet as completed initialization.

Strany 10

18181818 var appletReady = false;var doc = parent.frames.main.document; //(or just 'document' if it'snot in a frame)if (doc.ViewONE

Strany 11 - Apple Macintosh users (HTML)

19191919 Opening documents and images openFile(filename, page) E.g. ViewONE.openFile(“myimages.tif”, 1); Specifies the filename and initial page o

Strany 12

DAEJA IMAGE SYSTEMS Contents Introduction...

Strany 13

20202020Initializing the page and thumb arrays causes a ‘soft’ close to be performed, i.e. the current document is closed and the annotation source,

Strany 14

21212121 initializePageAndThumbsArray(numPages) setPageArray(filename, page) setThumbsArray(filename, page) openPageArray(page) E.g. ViewONE.initi

Strany 15 - ViewONE JavaScript Overview

22222222 initializeDocumentArray(numDocs) setDocumentArray(filename, index) openDocumentArray() E.g. ViewONE.initializeDocumentArray(3); ViewONE.s

Strany 16 - JavaScript Reference

23232323 reloadList() E.g. ViewONE.reloadList() This method forces the list used with the openList() method to be reloaded and the document to be r

Strany 17 - General Applet Control

24242424 setPage(page) E.g. ViewONE.setPage(2); Sets the current page number (an integer). getPage() E.g. var page = ViewONE.getPage(); Returns t

Strany 18

25252525 getDocReference() E.g. Var ref = ViewONE.getDocReference(); Gets the document reference for the document. getCacheFile() E.g. var file

Strany 19 - Opening documents and images

26262626Specifying an Annotations File setAnnotationFile(filename) E.g. ViewONE.setAnnotationFile(“http://mysite/myannotations.ant”); This method

Strany 20

27272727Saving documents and images save(filename) E.g. ViewONE.save(“c:/temp/image.tif”); Saves the current document (multi-page tiffs), or curre

Strany 21

28282828 isMultipageTif() E.g. vat ismulti = ViewONE.isMultipageTif(); This method is useful if you want to first check whether the current documen

Strany 22 - Method:

29292929 Document hyperlinks setHyperlink(url, dblClick) E.g. ViewONE.setHyperlink(“newpage.html”, false); or ViewONE.setHyperlink(“http://mysite

Strany 23

DAEJA IMAGE SYSTEMS Specifying an Annotations File...

Strany 24

30303030PDF Viewing Options (Pro-Only) ViewONE Pro introduced an optional PDF module. The module comes with various optional methods as follows...

Strany 25

31313131getPDFResolution() E.g. var depth = ViewONE.getPDFResolution(); Returns the current resolution used when viewing PDF documents. setAutoLi

Strany 26

32323232The best value for you can only really be discovered by experimentation since it depends upon your documents, PC and network performance and

Strany 27 - Saving documents and images

33333333COLD Viewing Options (Pro-Only) ViewONE Pro introduced an optional COLD module. The COLD module is responsible for implementing image mer

Strany 28

34343434 setBackgroundImage(filename, pageNumber) E.g. ViewONE.setBackgroundImage(“mybackimage.tif“, 1); This method is used to set the COLD backgr

Strany 29 - Document hyperlinks

35353535 setBackgroundImageEnabled(true/false) E.g. ViewONE.setBackgroundImageEnabled(false); This method is used to change the visibility of the C

Strany 30

36363636 Document Indexes (Pro-Only) ViewONE Version 3 introduced an option to specify a text index for multi-page documents. A text index acts as

Strany 31

37373737 Image invert() E.g. ViewONE.invert(); Inverts the display colors (black changes to white and visa-versa). This method is also effective

Strany 32 - (Pro-Only)

38383838isEnhance(true/false) E.g. var enhance = ViewONE.isEnhance(); Returns a Boolean ‘True’ if enhance is on, ‘False’ if it is off. setEnhanceM

Strany 33

39393939initializeRotationArray(int size) E.g. ViewONE.initializeRotationArray(4); Initializes the rotation array, used for setting the rotation

Strany 34

DAEJA IMAGE SYSTEMS zoomOut()...

Strany 35

40404040rotateClockwise() E.g. ViewONE.rotateClockwise(); Convenience method to increase the rotation by 90 degrees. If the document is closed wh

Strany 36 - Document Indexes (Pro-Only)

41414141getFlip() E.g. var angle = ViewONE.getFlip(); Returns the flip mode as an integer. setScale(scale) E.g. ViewONE.setScale(0); Specifies

Strany 37

42424242setStates(string states) E.g. ViewONE.setStates(states); Sets the zoom, scroll and other states to the values specified by the coded strin

Strany 38

43434343 setZoom(zoom) E.g. ViewONE.setZoom(2.0); Zooms to the value specified. The value is specified as a double value - 1.0 = 100% or 1 image p

Strany 39

44444444 setDraggingEnabled(true/false) E.g. ViewONE.setDraggingEnabled(true); Specifies whether the dragging of the image is permitted or not (us

Strany 40

45454545 getBrightness() E.g. var percent = ViewONE.getBrighness(); Returns the current brightness percentage setting (0-100). setContrast(percen

Strany 41

46464646setLuminance(percent) E.g. ViewONE.setLuminance(70); This method sets the luminance of the image displayed. The value represents a percent

Strany 42

47474747getImageHeight() E.g. var height = ViewONE.getImageHeight(); Returns an integer value representing the height of the currently displayed i

Strany 43

48484848Viewing setView(view) E.g. ViewONE.setView(0); Specifies the view mode used to display pages of a document. This method is effective only

Strany 44

49494949 setAreaZoom(true/false) E.g. ViewONE.setAreaZoom (true); If true, initiates the zoom-area mode. The mouse pointer changes to a cross and

Strany 45

DAEJA IMAGE SYSTEMS printDocument()...

Strany 46

50505050setMagnifierInternal(true/false) E.g. ViewONE.setMagnifierInternal(true); If true, displays a magnifier window internal to the display are

Strany 47

51515151 isMagnifier() E.g. var magVisible = ViewONE.isMagnifier(); Returns a Boolean value indicating the magnifier visibility status. toggleMag

Strany 48 - Viewing

52525252 isNewWindowVisible() E.g. ViewONE.setNewWindowVisible(!ViewONE.isNewWindowVisible()); Returns a Boolean value of ‘true’ if the ViewONE ne

Strany 49

53535353 setImageBackColor(color) E.g. ViewONE.setImageBackColor(255, 255, 255) This method sets the default color used for the background of mono

Strany 50

54545454 Labels initializeLabels(numLabels) setLabel(pageLabel, pageLabelColor, thumbLabel, thumbLabelColor, labelNum) useLabels() clearLabels() E

Strany 51

55555555 Selection and clipboard selectPage(int pageNumber) E.g. ViewONE.selectPage(4); Toggles the select property on the page in a document ind

Strany 52

56565656 Printing printPage() E.g. ViewONE.printPage(); Produces a print dialog to allow the user to print the current page. Security note: This

Strany 53

57575757printSelected() E.g. ViewONE.printSelected(); Produces a print dialog to print pages selected using the page-select menu (available for mul

Strany 54

58585858isPrintDialog() E.g. var dialog = ViewONE.isPrintDialog(); Returns a Boolean ‘True’ if the print dialog is enabled, ‘False’ if it is not.

Strany 55 - Selection and clipboard

59595959 setPrintHeader(headerString) E.g. ViewONE.setPrintHeader(“$page # $of ##”) Printouts can include custom text at the top of each page. By d

Strany 56 - Printing

DAEJA IMAGE SYSTEMS isFileKeys()...

Strany 57

60606060 setPrintAutoRotate (true/false) E.g. ViewONE.setPrintAutoRotate(true) This parameter is only available when used with the print accelerato

Strany 58

61616161 Toolbars and Buttons setScrollbars(true/false) E.g. ViewONE.setScrollbars(true); Specifies whether scrollbars will appear when the image

Strany 59 -  Copyright blah 2000”

62626262 setFileButtons(true/false) E.g. ViewONE.setFileButtons(true); Specifies whether the toolbar includes file buttons. A value of ‘true’ (d

Strany 60

63636363 setImageButtons(true/false) E.g. ViewONE.setImageButtons(true); Specifies whether the toolbar includes image buttons. A value of ‘true’

Strany 61 - Toolbars and Buttons

64646464 isPrintButtons() E.g. var buttonVisible = ViewONE.isPrintButtons(); Returns a Boolean value of ‘true’ if the print button is visible else

Strany 62

65656565isNewWindowButtons() E.g. var buttonVisible = ViewONE.isNewWindowButtons(); Returns a Boolean value of ‘true’ if the new-window button is

Strany 63

66666666isAllButtons() E.g. var buttonsVisible = ViewONE.isAllButtons(); Returns a Boolean value of ‘true’ if the all buttons are visible else a v

Strany 64

67676767 toggleAdjustTool() E.g. ViewONE.toggleAdjustTool(); This method toggles the visibility of the adjust tool (brightness/contrast/luminance

Strany 65

68686868 Menus and keys setFileMenus(true/false) E.g. ViewONE.setFileMenus(true); Specifies whether the file pop-up menus are available (using m

Strany 66

69696969 setViewMenus(true/false) E.g. ViewONE.setViewMenus(true); Specifies whether the view pop-up menus are available (using mouse button 2/3).

Strany 67

7777Introduction ViewONE is a Java applet that extends your web browser so that you can view, zoom, magnify, scroll, pan, rotate and print your ima

Strany 68 - Menus and keys

70707070 setImageMenus(true/false) E.g. ViewONE.setImageMenus(true); Specifies whether the image pop-up menus are available (using mouse button 2/

Strany 69

71717171 setPrintMenus(true/false) E.g. ViewONE.setPrintMenus(true); Specifies whether the print pop-up menus are available (using mouse button 2/

Strany 70

72727272 setPageMenus(true/false) E.g. ViewONE.setPageMenus(true); Specifies whether the page pop-up menus are available (using mouse button 2/3).

Strany 71

73737373 setSelectMenus(true/false) E.g. ViewONE.setSelectMenus(true); Specifies whether the select pop-up menus are available (using mouse button

Strany 72

74747474 setPreferenceMenus(true/false) E.g. ViewONE.setPreferenceMenus(true); Specifies whether the preference pop-up menus are available (using

Strany 73

75757575 setAllMenus(true/false) E.g. ViewONE.setAllMenus(true); Specifies whether the all pop-up menus are available. A value of ‘true’ (default

Strany 74

76767676 setImageKeys(true/false) E.g. ViewONE.setImageKeys(true); Specifies whether the hot keys for image operations are enabled. A value of ‘t

Strany 75

77777777 setPrintKeys(true/false) E.g. ViewONE.setPrintKeys(true); Specifies whether the hot keys for print operations are enabled. A value of ‘t

Strany 76

78787878 isViewKeys() E.g. var keysEnabled = ViewONE.isViewKeys (); Returns a Boolean value of ‘true’ if the keys are enabled else a value ‘false’

Strany 77

79797979 isSelectKeys() E.g. var keysEnabled = ViewONE.isSelectKeys (); Returns a Boolean value of ‘true’ if the keys are enabled else a value ‘fa

Strany 78

8888The Applet user interface Vertical scrollbar Horizontal scrollbar Help and progress captions appear here Enhance mode Scroll to First, Pr

Strany 79

80808080 Timeout/User Idle Control setTimeout(seconds) E.g. var ready = ViewONE.setTimeout(30); This method sets and starts a usage timer. If the

Strany 80 - Timeout/User Idle Control

81818181 getTimeLeft() E.g. var timeleft = ViewONE.getTimeLeft(); This method returns the time in seconds left before the applet times-out. but on

Strany 81

82828282 The Event Handler and Event Handling ViewONE introduces the concept of applet JavaScript event handling. This is a mechanism by which it i

Strany 82

83838383Events handler change in ViewONE Version 3 Prior to ViewONE Version 3, all events were signaled irrespective of whether the event was requi

Strany 83

84848484Events ids and descriptions ViewONE can signal many different events to the event handler. The following list describes the events that wil

Strany 84 - Events ids and descriptions

85858585event to switch focus to any alternative component on your web page. 22 ready The applet has just been started and is ready to accept Java

Strany 85

86868686- Windows main menu key - Popup menu key The following keys will generate events but will always also be handled by ViewONE event when Proce

Strany 86

87878787 Event Handler example: <html><head><title>ViewONE Event Handler Demo</title></head><body bgcolor="#C

Strany 87 - Event Handler example:

88888888Testing your Event Handler There may be cases where ‘LiveConnect’ is not implemented (older browsers or some browser implementations on non

Strany 88 - The MayScript tag

9999Installing ViewONE To install ViewONE on your web site you must first download the ‘Update’ zip file from the Daeja web site. This can be found

Komentáře k této Příručce

Žádné komentáře