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

Models: VERSION 3.0

1 88
Download 88 pages 5.41 Kb
Page 44
Image 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

Page 44
Image 44
JAVA Tech VERSION 3.0 manual Method setDraggingEnabledtrue/false, Method isDraggingEnabled, Method setBrightnesspercent