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

Centers the scene once it is all visible.



Public Methods
 MethodDefined by
  
Constructor.
CenterConstraint
  
Validate the viewport transform by performing transformations until it validates all constraints.
CenterConstraint
Constructor detail
CenterConstraint()constructor
public function CenterConstraint()

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.