Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
IViewportModel

Package | org.apache.flex.core
Interface | public interface IViewportModel extends IBead
Implementors | ViewportModel

A Viewport is the area of a Container set aside for displaying content and any scrolling controls. The ViewportModel caches the offsets required to compute the size of the Viewport.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | borderMetrics : Rectangle Size of the borders. | IViewportModel
|  | chromeMetrics : Rectangle Size of the chrome. | IViewportModel
|  | strand : IStrand [write-only] The host component for this bead. | IBead

Property Detail

borderMetrics | property

`borderMetrics:Rectangle`

Size of the borders.

Implementation
`public function get borderMetrics():Rectangle`
`public function set borderMetrics(value:Rectangle):void`

chromeMetrics | property |

`chromeMetrics:Rectangle`

Size of the chrome. A plain container doesn't have any chrome but a Panel's TitleBar and any ControlBar or StatusBar is considered chrome. Scrollbars used to scroll content are not factored into the viewport calculation. The Viewport is responsible for displaying any scrolling controls and deciding whether to further shrink the content area or have the scrollbars overlay the content.

Implementation
`public function get chromeMetrics():Rectangle`
`public function set chromeMetrics(value:Rectangle):void`

Mon Sep 5 2016, 07:19 AM -07:00