Method:

Method:

getFlip()

E.g. var angle = ViewONE.getFlip();

Returns the flip mode as an integer.

setScale(scale)

E.g. ViewONE.setScale(0);

Specifies the scale mode used to display a page. Acceptable integer values are:

0:best fit

The page is scaled to fit into the window area so that the entire page is visible.

1:Fit-to-window-width

The page is scaled so that the width of the page matches the width of the window area. This may result in the visible page height exceeding the available window height in which case a vertical scroll bar appears automatically.

2:Fit-to-window-height

Method:

Method:

The page is scaled so that the height of the page matches the height of the window area. This may result in the visible page width exceeding the available window width in which case a horizontal scroll bar appears

getScale()

E.g. var scale = ViewONE.getScale();

Returns the integer scale value.

getStates()

E.g. states = ViewONE.getStates();

Returns a coded string to be used with setStates(). When this method is called while a document it open, it returns a string containing information about the current zoom, scroll and other states.

41

Page 41
Image 41
JAVA Tech VERSION 3.0 manual GetFlip, SetScalescale, GetScale, GetStates