Packageorg.openzoom.flash.viewport.constraints
Classpublic final class ZoomConstraint
ImplementsIViewportConstraint

Provides a way to limit the minimum and maximum zoom the viewport can reach.



Public Properties
 PropertyDefined by
  maxZoom : Number
Maximum zoom the viewport can reach.
ZoomConstraint
  minZoom : Number
Minimum zoom the viewport can reach.
ZoomConstraint
Public Methods
 MethodDefined by
  
Constructor.
ZoomConstraint
  
Validate the viewport transform by performing transformations until it validates all constraints.
ZoomConstraint
Property detail
maxZoomproperty
maxZoom:Number  [read-write]

Maximum zoom the viewport can reach.

Implementation
    public function get maxZoom():Number
    public function set maxZoom(value:Number):void
minZoomproperty 
minZoom:Number  [read-write]

Minimum zoom the viewport can reach.

Implementation
    public function get minZoom():Number
    public function set minZoom(value:Number):void
Constructor detail
ZoomConstraint()constructor
public function ZoomConstraint()

Constructor.

Method detail
validate()method
public function validate(transform:IViewportTransform, target:IViewportTransform):IViewportTransform

Validate the viewport transform by performing transformations until it validates all constraints.

Parameters
transform:IViewportTransform — IViewportTransform object to be validated.
 
target:IViewportTransform — IViewportTransform object that represents the last validated transform.

Returns
IViewportTransform — Validated IViewportTransform object.