This documentation is for the old version. Go to the latest Graphics Mill docs

ZoomRectangleNavigator Class

This client-side class corresponds to the ZoomRectangleNavigator server-side control.

Namespace: GraphicsMill
Assembly: Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)

Syntax

Java Script
GraphicsMill.ZoomRectangleNavigator = function();

Type.createClass(
	'GraphicsMill.ZoomRectangleNavigator',
	GraphicsMill.RectangleController);

Remarks

This class represents a navigator which is used to zoom the content displayed in the BaseViewer control by selecting necessary portion of the content by the mouse.

When this navigator is attached to the BaseViewer, it is working in the following way:

  1. When the left button of the mouse is pressed down, it captures the mouse control.
  2. When control is captured and the mouse is moved, the selection rectangle is displayed and stretched.
  3. When the left button of the mouse is released, the control zooms the content so that the selected portion occupies as much control client area as aspect ratio allows.

You can attach this navigator from client-side code using the BaseViewer.navigator property.

Inheritance Hierarchy

Sys.Component
L Sys.UI.Control
L GraphicsMill.UserInputController
L GraphicsMill.RectangleController
L GraphicsMill.ZoomRectangleNavigator

See Also

Reference