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

Provides a way to limit the minimum and maximum scale the scene can reach.



Public Properties
 PropertyDefined by
  maxScale : Number
Maximum scale the scene can reach.
ScaleConstraint
  minScale : Number
Minimum scale the scene can reach.
ScaleConstraint
Public Methods
 MethodDefined by
  
Constructor.
ScaleConstraint
  
Validate the viewport transform by performing transformations until it validates all constraints.
ScaleConstraint
Property detail
maxScaleproperty
maxScale:Number  [read-write]

Maximum scale the scene can reach.

Implementation
    public function get maxScale():Number
    public function set maxScale(value:Number):void
minScaleproperty 
minScale:Number  [read-write]

Minimum scale the scene can reach.

Implementation
    public function get minScale():Number
    public function set minScale(value:Number):void
Constructor detail
ScaleConstraint()constructor
public function ScaleConstraint()

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.