Method:

Method:

Method: (V3-Only)

setAreaZoom(true/false)

E.g. ViewONE.setAreaZoom (true);

If true, initiates the zoom-area mode. The mouse pointer changes to a cross and the user can drag the mouse (using button one) to select an area for zooming. When the mouse button is released the area selected will be zoomed as large as possible whilst maintaining the image aspect within the available window area.

If the selected area is not greater than the zoom trigger size (currently 20*20 pixels) then zooming will not occur. This allows the user to release the mouse if the mode was initiated accidentally.

If false, mouse functionality returns to drag mode (to pan the image).

isAreaZoom()

E.g. var areaZoom = ViewONE.isAreaZoom();

Returns a Boolean value indicating the zoom-area status.

toggleAreaZoom()

E.g. ViewONE.toggleAreaZoom();

This toggles ViewONE zoom area mode. When in zoom area mode the cursor will change to a cross hair and the user can select an area to zoom using the cursor. When not in zoom area mode, the cursor can be used to drag/scroll the image.

Method: setMagnifier(true/false)

E.g. ViewONE.setMagnifier(true);

If true, displays an external magnifier window. A rectangle is visible around the mouse pointer which highlights the area being magnified.

If false, the magnifier window is hidden.

49

Page 49
Image 49
JAVA Tech VERSION 3.0 manual SetAreaZoomtrue/false, IsAreaZoom, ToggleAreaZoom, Method setMagnifiertrue/false