Packageorg.openzoom.flash.viewport
Interfacepublic interface INormalizedViewportContainer extends INormalizedViewport, IViewport, IDisposable, flash.events.IEventDispatcher
ImplementorsNormalizedViewport

Interface for the viewport container (owner), e.g. MultiScaleContainer or MultiScaleImage components.



Public Properties
 PropertyDefined by
 Inheritedbottom : Number
The sum of the y and height properties.
IViewport
 InheritedbottomRight : Point
The location of the IViewport object's bottom-right corner, determined by the values of the right and bottom properties.
IViewport
 Inheritedcenter : Point
Returns the center of the viewport.
IViewport
 Inheritedheight : Number
Vertical dimension of the viewport.
IViewport
 Inheritedleft : Number
The x coordinate of the top-left corner of the viewport.
IViewport
 Inheritedright : Number
The sum of the x and width properties.
IViewport
 Inheritedscale : Number
Scale of the scene.
IViewport
 Inheritedscene : IReadonlyMultiScaleScene
Scene this viewport belongs to.
IViewport
 Inheritedtop : Number
The y coordinate of the top-left corner of the viewport.
IViewport
 InheritedtopLeft : Point
The location of the IViewport object's top-left corner, determined by the x and y coordinates of the point.
IViewport
 Inheritedtransform : IViewportTransform
Transformation that is currently applied to the viewport
IViewport
 Inheritedtransformer : IViewportTransformer
Transforms the IViewport object after its state has been changed.
IViewport
 InheritedviewportHeight : Number
Height of the viewport container.
IViewport
 InheritedviewportWidth : Number
Width of the viewport container.
IViewport
 Inheritedwidth : Number
Horizontal dimension of the viewport.
IViewport
 Inheritedx : Number
Horizontal coordinate of the viewport.
IViewport
 Inheritedy : Number
Vertical coordinate of the viewport.
IViewport
 Inheritedzoom : Number
Zoom level of the viewport.
IViewport
Public Methods
 MethodDefined by
 Inherited
Dispatch transformStart event to let all listeners know that a viewport transition has started.
IViewport
 Inherited
contains(x:Number, y:Number):Boolean
Determines whether the specified point is contained within this Viewport object.
IViewport
 Inherited
dispose():void
Releases all resources this object holds on to.
IDisposable
 Inherited
endTransform():void
Dispatch transformEnd event to let all listeners know that a viewport transition has finished.
IViewport
 Inherited
fitToBounds(bounds:Rectangle, scale:Number = 1.0, immediately:Boolean = false):void
Show a rectangular area of the scene inside the viewport.
IViewport
 Inherited
getBounds():Rectangle
Returns a Rectangle object with the bounds of the viewport.
IViewport
 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.
IViewport
 Inherited
intersects(toIntersect:Rectangle):Boolean
Determines whether the object specified in the toIntersect parameter intersects with this Viewport object.
IViewport
 Inherited
localToScene(point:Point):Point
Converts the point object from the viewport's container (local) coordinates to scene coordinates.
IViewport
 Inherited
panBy(deltaX:Number, deltaY:Number, immediately:Boolean = false):void
Move the viewport.
IViewport
 Inherited
panCenterTo(centerX:Number, centerY:Number, immediately:Boolean = false):void
Move the viewport center.
IViewport
 Inherited
panTo(x:Number, y:Number, immediately:Boolean = false):void
Move the viewport.
IViewport
 Inherited
sceneToLocal(point:Point):Point
Converts the point object from scene coordinates to the viewport's container (local) coordinates.
IViewport
  
setSize(width:Number, height:Number):void
Sets viewportWidth and viewportHeight.
INormalizedViewportContainer
 Inherited
showAll(immediately:Boolean = false):void
Fit entire scene into the viewport.
IViewport
 Inherited
zoomBy(factor:Number, transformX:Number = 0.5, transformY:Number = 0.5, immediately:Boolean = false):void
Zoom the viewport by a factor.
IViewport
 Inherited
zoomTo(zoom:Number, transformX:Number = 0.5, transformY:Number = 0.5, immediately:Boolean = false):void
Zoom the viewport to a zoom level z.
IViewport
Events
 EventSummaryDefined by
 Inherited Dispatched when the viewport container is resized.IViewport
 Inherited Dispatched when the viewport transformation target is updated.IViewport
 Inherited Dispatched when a viewport transformation ends.IViewport
 Inherited Dispatched when a viewport transformation begins.IViewport
 Inherited Dispatched when the viewport transformation is updated.IViewport
Method detail
setSize()method
public function setSize(width:Number, height:Number):void

Sets viewportWidth and viewportHeight. Dispatches Event.RESIZE.

Parameters
width:Number
 
height:Number

See also

org.openzoom.events.ViewportEvent.RESIZE