JAVA Tech VERSION 3.0 manual Method setDraggingEnabledtrue/false, Method isDraggingEnabled

Page 44

Method: setDraggingEnabled(true/false)

E.g. ViewONE.setDraggingEnabled(true);

Specifies whether the dragging of the image is permitted or not (using the mouse). Dragging the image to the right pans the image to the right, dragging the image to the left pans the image to the left etc.

A value of ‘true’ (default) indicates dragging is permitted and ‘false’ indicates that it is not

Method: isDraggingEnabled()

E.g. var draggingEnabled = ViewONE.isDraggingEnabled();

Returns a Boolean value of ‘true’ if dragging is allowed else a value ‘false’ is returned.

Method: setBrightness(percent)

E.g. ViewONE.setBrighness(60);

This method sets the brightness of the displayed. The value represents a percentage from 0-100, with 50 being the default value. 0 = minimum brightness (dark) and 100 = maximum brightness (light).

If the document is closed when this method is called, the default for all pages is modified. If the document is open when this method is called, the individual page is modified only.

Method: resetBrightness()

E.g. ViewONE.resetBrighness();

This method resets the brightness level to 50% (the default value).

If the document is closed when this method is called, the default for all pages is modified. If the document is open when this method is called, the individual page is modified only.

44

Image 44
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 Opening documents and images OpenFilefilename,CloseDocument ViewONE.closeDocument Closes an open documentPage Method Group Method openListlistFile, ReloadList OpenDocindexNextDoc PrevDoc FirstDoc LastDoc GetDocIndex GetNumDocs MethodgetNumPagesMethodsetPagepage Method getPageMethod nextPage Method previousPageMethodgetDocReference Method getCacheFileSpecifying an Annotations File MethodsetAnnotationFilefilenameSaving documents and images SavefilenameSavePagefilename 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 SetIndexListFileURLImage InvertSetInvertedtrue/false IsInvertedIsEnhancetrue/false SetEnhanceModemodeGetEnhanceMode SetRotationangleMethod initializeRotationArrayint size Method setRotationArrayint angle, intMethod applyRotationArray Method getRotationMethodrotateClockwise Method rotateCounterclockwiseRotate180 SetFlipmodeGetFlip SetScalescaleGetScale GetStatesViewONE.zoom100 Zooms image to 100% full resolution Method setStatesstring statesMethod zoomOut Method zoom100Method setZoomzoom Method setZoomAndXYScrollzoom, x, yMethod zoomAreax, y, width, height, highlight, seconds SetXYScrollx, yMethod setDraggingEnabledtrue/false Method isDraggingEnabledMethod resetBrightness Method setBrightnesspercentMethod resetContrast Method getBrightnessMethod setContrastpercent Method getContrastMethod resetLuminance Method setLuminancepercentMethod getLuminance Method getImageWidthGetImageHeight Method getXResolutionMethod getYResolution GetView ViewingSetViewview SetAreaZoomtrue/false IsAreaZoomToggleAreaZoom Method setMagnifiertrue/falseMethod setMagnifierInternaltrue/false IsMagnifier ToggleMagnifierSetMagFactor Method getMagFactorShowImageForeColorDialog IsNewWindowVisibleSetImageForeColorcolor SetImageBackColorcolor ShowImageBackColorDialogLabels Selection and clipboard Method selectPageint pageNumberMethod clearSelections Method copyPageToClipboardPrinting PrintPagePrintDocument PrintRangePrintSelected PrintVisiblePrintTransformed SetPrintDialogtrue/falseMethod setPrinterstring Method isPrintDialogMethod setPrintCopiesinteger Method setPrintHeaderheaderString Or some other informational textMethod setPrintAutoRotate true/false Toolbars and Buttons Method setScrollbarstrue/falseIsScrollbars SetStatusBartrue/falseMethod setFileButtonstrue/false Method isFileButtonsSetPrintButtonstrue/false Method setImageButtonstrue/falseIsImageButtons Method isPrintButtons SetInvertButtonstrue/falseIsInvertButtons Method setNewWindowButtonstrue/falseIsNewWindowButtons SetViewButtonstrue/falseMethod isViewButtons Method setAllButtonstrue/falseMethod isPageButtons Method isAllButtonsMethodsetPageButtonstrue/false IsAdjustToolVisible ToggleAdjustToolSetAdjustToolVisibleOnOff Menus and keys SetFileMenustrue/falseIsFileMenus 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 SetAllMenustrue/false IsAllMenusSetFileKeystrue/false IsFileKeysSetImageKeystrue/false IsImageKeysSetViewKeystrue/false SetPrintKeystrue/falseIsPrintKeys IsViewKeys SetPageKeystrue/falseIsPageKeys SetSelectKeystrue/falseMethod isAllKeys Method isSelectKeysMethod setAllKeystrue/false Timeout/User Idle Control Method setTimeoutsecondsMethod getTimeout 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