Main Page | Packages | Class Tree | Index | Help

xp.system.layout

class CanvasLayout

Object
  |
  +--xp.system.layout.LayoutManager
        |
        +--xp.system.layout.CanvasLayout


class CanvasLayout
extends LayoutManager

A layout manager that lay out controls based on their x/y or left/top propererties


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Constructor

public
CanvasLayout ( )
Create the layout manager instance

Method Summary

public
getPreferredSize ( ): Void
Calculates the preferred size for a container

public
layoutContainer ( ): Void
Lays out the container using a horizontal box model Iterate over child cmps, position cmp at the left of the remainig space and stretch vertically to fit

Methods inherited from class xp.system.layout.LayoutManager

addLayoutComponent, getLayoutType, getPreferredSize, initContainer, layoutContainer, removeLayoutComponent



Constructor Documentation

CanvasLayout

public function CanvasLayout()
Create the layout manager instance


Method Documentation

getPreferredSize

public function getPreferredSize(): Void
Calculates the preferred size for a container

Overrides:

Returns:
The size of the container in a Dimension object

layoutContainer

public function layoutContainer(): Void
Lays out the container using a horizontal box model Iterate over child cmps, position cmp at the left of the remainig space and stretch vertically to fit

Overrides:


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc