class org.aswing.ViewportLayout extends EmptyLayout

The default layout manager for JViewport. ViewportLayout defines a policy for layout that should be useful for most applications. The viewport makes its view the same size as the viewport, however it will not make the view smaller than its minimum size. As the viewport grows the view is kept bottom justified until the entire view is visible, subsequently the view is kept top justified.

@author paling

Instance Fields

Show inherited public instance fieldsHide inherited public instance fields

Inherited from EmptyLayout

function addLayoutComponent(comp:Component, constraints:Dynamic):Void
function getLayoutAlignmentX(target:Container):Float
function getLayoutAlignmentY(target:Container):Float
function invalidateLayout(target:Container):Void
function layoutContainer(target:Container):Void
function maximumLayoutSize(target:Container):IntDimension
function minimumLayoutSize(target:Container):IntDimension
function preferredLayoutSize(target:Container):IntDimension
function removeLayoutComponent(comp:Component):Void

function new(): Void

function layoutContainer(parent:Container): Void

Called by the AWT when the specified container needs to be laid out.

parent

the container to lay out

function preferredLayoutSize(parent:Container): IntDimension

Returns the preferred dimensions for this layout given the components in the specified target container. @see #minimumLayoutSize

parent

the component which needs to be laid out

returns

a Dimension object containing the preferred dimensions