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 fields | Hide inherited public instance fields
|
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 |