| Package | org.aswing |
| Class | public class ViewportLayout |
| Inheritance | ViewportLayout EmptyLayout |
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.
| Method | Defined by | ||
|---|---|---|---|
![]() |
addLayoutComponent(comp:Component, constraints:Object):void
Do nothing
Adds the specified component to the layout, using the specified
constraint object.
| EmptyLayout | |
![]() |
getLayoutAlignmentX(target:Container):Number
return 0
| EmptyLayout | |
![]() |
getLayoutAlignmentY(target:Container):Number
return 0
| EmptyLayout | |
![]() |
invalidateLayout(target:Container):void
do nothing
| EmptyLayout | |
|
layoutContainer(parent:Container):void
Called by the AWT when the specified container needs to be laid out.
| ViewportLayout | ||
![]() |
return IntDimension.createBigDimension();
| EmptyLayout | |
![]() |
new IntDimension(0, 0);
| EmptyLayout | |
|
Returns the preferred dimensions for this layout given the components
in the specified target container.
| ViewportLayout | ||
![]() |
removeLayoutComponent(comp:Component):void
Do nothing
Removes the specified component from the layout.
| EmptyLayout | |
| layoutContainer | () | method |
public override function layoutContainer(parent:Container):voidCalled by the AWT when the specified container needs to be laid out.
Parametersparent:Container — the container to lay out
|
| preferredLayoutSize | () | method |
public override function preferredLayoutSize(parent:Container):IntDimensionReturns the preferred dimensions for this layout given the components in the specified target container.
Parametersparent:Container — the component which needs to be laid out
|
IntDimension —
a Dimension object containing the
preferred dimensions
|
See also