Method: setStates(string states)

E.g. ViewONE.setStates(states);

Sets the zoom, scroll and other states to the values specified by the coded string. This method should be called before opening a document.

The getStates() and setStates() methods together permit the viewing states to be restored when a document is closed and re-opened.

Method: zoomIn()

E.g. ViewONE.zoomIn();

Applies a 25% increase in zoom. Note, at first ViewONE will attempt to use the scale modes (fit-to-width, fit-to-height and best-fit) if they are more appropriate. The zoomIn() function will increase the zoom factor only after the scale modes are no longer suitable.

Method: zoomOut()

E.g. ViewONE.zoomOut();

Reverses the effect of zoomIn().

Method: zoom100()

E.g. ViewONE.zoom100();

Zooms image to 100% (full resolution).

42

Page 42
Image 42
JAVA Tech VERSION 3.0 manual Method setStatesstring states, Method zoomOut, Method zoom100