Packageorg.openzoom.flash.viewport
Interfacepublic interface IViewportTransformContainer extends IViewportTransform, IDisposable
ImplementorsViewportTransform

Interface to the viewport for a viewport container. Allows the container to the set the size (viewportWidth and viewportHeight) of IViewportTransform.



Public Properties
 PropertyDefined by
 Inheritedbottom : Number
The sum of the y and height properties.
IViewportTransform
 InheritedbottomRight : Point
The location of the IViewport object's bottom-right corner, determined by the values of the right and bottom properties.
IViewportTransform
 Inheritedcenter : Point
Returns the center of the transform.
IViewportTransform
 Inheritedheight : Number
Vertical dimension of the viewport.
IViewportTransform
 Inheritedleft : Number
The x coordinate of the top-left corner of the viewport.
IViewportTransform
 Inheritedright : Number
The sum of the x and width properties.
IViewportTransform
 Inheritedscale : Number
Scale of the scene.
IViewportTransform
 InheritedsceneHeight : Number
Indicates the height of the scene, in pixels.
IViewportTransform
 InheritedsceneWidth : Number
Indicates the width of the scene, in pixels.
IViewportTransform
 Inheritedtop : Number
Coordinate of the upper boundary of the viewport transform.
IViewportTransform
 InheritedtopLeft : Point
The location of the IViewport object's top-left corner, determined by the x and y coordinates of the point.
IViewportTransform
 InheritedviewportHeight : Number
Height of the viewport container.
IViewportTransform
 InheritedviewportWidth : Number
Width of the viewport container.
IViewportTransform
 Inheritedwidth : Number
Horizontal dimension of the viewport.
IViewportTransform
 Inheritedx : Number
Horizontal coordinate of the viewport.
IViewportTransform
 Inheritedy : Number
Vertical coordinate of the viewport.
IViewportTransform
 Inheritedzoom : Number
Zoom level of the viewport.
IViewportTransform
Public Methods
 MethodDefined by
 Inherited
Returns a new IViewportTransform object with the same values for the x, y, width, height and zoom properties as the original IViewportTransform object.
IViewportTransform
 Inherited
contains(x:Number, y:Number):Boolean
Determines whether the specified point is contained within this Viewport object.
IViewportTransform
 Inherited
Copy values from other to this instance of IViewportTransform.
IViewportTransform
 Inherited
dispose():void
Releases all resources this object holds on to.
IDisposable
 Inherited
equals(other:IViewportTransform):Boolean
Determines whether the object specified in the other parameter is equal to this Rectangle object.
IViewportTransform
 Inherited
fitToBounds(bounds:Rectangle, scale:Number = 1.0):void
Show an area of the scene inside the viewport.
IViewportTransform
 Inherited
getBounds():Rectangle
Returns a Rectangle object with the bounds of the viewport.
IViewportTransform
 Inherited
intersection(toIntersect:Rectangle):Rectangle
If the Rectangle object specified in the toIntersect parameter intersects with this Viewport object, returns the area of intersection as a Rectangle object.
IViewportTransform
 Inherited
intersects(toIntersect:Rectangle):Boolean
Determines whether the object specified in the toIntersect parameter intersects with this Viewport object.
IViewportTransform
 Inherited
panBy(deltaX:Number, deltaY:Number):void
Move the viewport.
IViewportTransform
 Inherited
panCenterTo(centerX:Number, centerY:Number):void
Move the viewport center.
IViewportTransform
 Inherited
panTo(x:Number, y:Number):void
Move the viewport.
IViewportTransform
  
setSize(width:Number, height:Number):void
Sets viewportWidth and viewportHeight.
IViewportTransformContainer
 Inherited
showAll():void
Fit entire scene into the viewport.
IViewportTransform
 Inherited
zoomBy(factor:Number, transformX:Number = 0.5, transformY:Number = 0.5):void
Zoom the viewport by a factor.
IViewportTransform
 Inherited
zoomTo(zoom:Number, transformX:Number = 0.5, transformY:Number = 0.5):void
Zoom the viewport to the given zoom level.
IViewportTransform
Method detail
setSize()method
public function setSize(width:Number, height:Number):void

Sets viewportWidth and viewportHeight. Dispatches ViewportEvent.RESIZE

Parameters
width:Number
 
height:Number

See also