JAVA Tech VERSION 3.0 manual Contents

Page 2

D A E J A I M A G E S Y S T E M S

Contents

 

Introduction

7

The Applet user interface

8

ViewONE Standard

9

ViewONE Pro

10

Mayscript parameter

10

Apple Macintosh users (JavaScript)

10

Apple Macintosh users (HTML)

11

Setting up Windows 2003 server

12

ViewONE JavaScript Overview

15

JavaScript Reference

16

Security note: Change since ViewONE 3.0.99 Standard and 1.0.99 Pro

16

General Applet Control

17

isReady()

17

getVersion()

18

Opening documents and images

19

openFile(filename, page)

19

closeDocument()

19

initializePageArray(numPages)

19

setPageArray(filename, page)

19

openPageArray(page)

19

initializePageAndThumbsArray(numPages)

21

setPageArray(filename, page)

21

setThumbsArray(filename, page)

21

openPageArray(page)

21

initializeDocumentArray(numDocs)

22

setDocumentArray(filename, index)

22

openDocumentArray()

22

openList(listFile, page)

22

reloadList()

23

openDoc(index)

23

nextDoc() prevDoc()

23

firstDoc()

23

lastDoc()

23

getDocIndex()

23

getNumDocs()

23

getNumPages()

23

setPage(page)

24

getPage()

24

nextPage()

24

previousPage()

24

setDescription(description)

24

getDescription()

24

getDocReference()

25

getCacheFile()

25

isCacheAccessFailed ()

25

Image 2
Contents ViewONE JavaScript API Manual Contents Specifying an Annotations File Viewing Toolbars and Buttons Timeout/User Idle Control Introduction Applet user interface Installing ViewONE ViewONE StandardApple Macintosh users JavaScript ViewONE ProMayscript parameter Using ViewONE Standard on IE for Apple Macintosh Apple Macintosh users HtmlSetting up Windows 2003 server Page Page ViewONE JavaScript Overview JavaScript Reference General Applet Control Method isReadyMethod getVersion CloseDocument Opening documents and imagesOpenFilefilename, ViewONE.closeDocument Closes an open documentPage Method Group Method openListlistFile, NextDoc PrevDoc FirstDoc LastDoc GetDocIndex GetNumDocs ReloadListOpenDocindex MethodgetNumPagesMethod nextPage MethodsetPagepageMethod getPage Method previousPageMethodgetDocReference Method getCacheFileSpecifying an Annotations File MethodsetAnnotationFilefilenameSavePagefilename Saving documents and imagesSavefilename MethodsaveSelectedfilenameMethodisMultipageTif ClearHyperlink Document hyperlinksSetHyperlinkurl, dblClick Method Pro-Only Method Pro-Only Method Cold Viewing Options Pro-Only SetBackgroundImagefilename, pageNumber SetBackgroundImageEnabledtrue/false IsBackgroundImageEnabledDocument Indexes Pro-Only SetIndexListFileURLSetInvertedtrue/false ImageInvert IsInvertedGetEnhanceMode IsEnhancetrue/falseSetEnhanceModemode SetRotationangleMethod applyRotationArray Method initializeRotationArrayint sizeMethod setRotationArrayint angle, int Method getRotationRotate180 MethodrotateClockwiseMethod rotateCounterclockwise SetFlipmodeGetScale GetFlipSetScalescale GetStatesMethod zoomOut ViewONE.zoom100 Zooms image to 100% full resolutionMethod setStatesstring states Method zoom100Method zoomAreax, y, width, height, highlight, seconds Method setZoomzoomMethod setZoomAndXYScrollzoom, x, y SetXYScrollx, yMethod resetBrightness Method setDraggingEnabledtrue/falseMethod isDraggingEnabled Method setBrightnesspercentMethod setContrastpercent Method resetContrastMethod getBrightness Method getContrastMethod getLuminance Method resetLuminanceMethod setLuminancepercent Method getImageWidthGetImageHeight Method getXResolutionMethod getYResolution GetView ViewingSetViewview ToggleAreaZoom SetAreaZoomtrue/falseIsAreaZoom Method setMagnifiertrue/falseMethod setMagnifierInternaltrue/false SetMagFactor IsMagnifierToggleMagnifier Method getMagFactorShowImageForeColorDialog IsNewWindowVisibleSetImageForeColorcolor SetImageBackColorcolor ShowImageBackColorDialogLabels Method clearSelections Selection and clipboardMethod selectPageint pageNumber Method copyPageToClipboardPrintDocument PrintingPrintPage PrintRangePrintTransformed PrintSelectedPrintVisible SetPrintDialogtrue/falseMethod setPrinterstring Method isPrintDialogMethod setPrintCopiesinteger Method setPrintHeaderheaderString Or some other informational textMethod setPrintAutoRotate true/false IsScrollbars Toolbars and ButtonsMethod setScrollbarstrue/false SetStatusBartrue/falseMethod setFileButtonstrue/false Method isFileButtonsSetPrintButtonstrue/false Method setImageButtonstrue/falseIsImageButtons IsInvertButtons Method isPrintButtonsSetInvertButtonstrue/false Method setNewWindowButtonstrue/falseMethod isViewButtons IsNewWindowButtonsSetViewButtonstrue/false Method setAllButtonstrue/falseMethod isPageButtons Method isAllButtonsMethodsetPageButtonstrue/false IsAdjustToolVisible ToggleAdjustToolSetAdjustToolVisibleOnOff IsFileMenus Menus and keysSetFileMenustrue/false ViewONE.setFileMenustrueViewONE.setViewMenustrue SetViewMenustrue/falseIsViewMenus ViewONE.setImageMenustrue SetImageMenustrue/falseIsImageMenus ViewONE.setPrintMenustrue SetPrintMenustrue/falseIsPrintMenus ViewONE.setPageMenustrue SetPageMenustrue/falseIsPageMenus ViewONE.setSelectMenustrue SetSelectMenustrue/falseIsSelectMenus ViewONE.setPreferenceMenustrue SetPreferenceMenustrue/falseIsPreferenceMenus SetFileKeystrue/false SetAllMenustrue/falseIsAllMenus IsFileKeysSetImageKeystrue/false IsImageKeysSetViewKeystrue/false SetPrintKeystrue/falseIsPrintKeys IsPageKeys IsViewKeysSetPageKeystrue/false SetSelectKeystrue/falseMethod isAllKeys Method isSelectKeysMethod setAllKeystrue/false Method getTimeout Timeout/User Idle ControlMethod setTimeoutseconds Method stopTimeoutMethod getTimeLeft Event Handler and Event Handling Events handler change in ViewONE Version Events ids and descriptions DocN Html tag is used see Html manual End tabReady First time the page is viewed Event Handler example HSPACE=0 VSPACE=0Testing your Event Handler MayScript tag