Package | org.openzoom.flash.viewport.constraints |
Class | public final class ScaleConstraint |
Implements | IViewportConstraint |
Property | Defined by | ||
---|---|---|---|
maxScale : Number
Maximum scale the scene can reach.
| ScaleConstraint | ||
minScale : Number
Minimum scale the scene can reach.
| ScaleConstraint |
Method | Defined by | ||
---|---|---|---|
Constructor.
| ScaleConstraint | ||
Validate the viewport transform by performing transformations until
it validates all constraints.
| ScaleConstraint |
maxScale | property |
maxScale:Number
[read-write]Maximum scale the scene can reach.
Implementation public function get maxScale():Number
public function set maxScale(value:Number):void
minScale | property |
minScale:Number
[read-write]Minimum scale the scene can reach.
Implementation public function get minScale():Number
public function set minScale(value:Number):void
ScaleConstraint | () | constructor |
public function ScaleConstraint()
Constructor.
validate | () | method |
public function validate(transform:IViewportTransform, target:IViewportTransform):IViewportTransform
Validate the viewport transform by performing transformations until it validates all constraints.
Parameterstransform:IViewportTransform — IViewportTransform object to be validated.
|
|
target:IViewportTransform — IViewportTransform object that represents the last validated transform.
|
IViewportTransform —
Validated IViewportTransform object.
|