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

NullConstraint doesn't aplly any constraints to a viewport. Null Object Pattern applied to IViewportConstraint.



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

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.