All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.ViewportLayout

java.lang.Object
   |
   +----com.sun.java.swing.ViewportLayout

public class ViewportLayout
extends Object
implements LayoutManager, Serializable
The default layout manager for JViewport. JViewportLayout defines a policy for layout that should be useful for most applications. The viewport makes its view as 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.


Constructor Index

 o ViewportLayout()

Method Index

 o addLayoutComponent(String, Component)
 o layoutContainer(Container)
 o minimumLayoutSize(Container)
 o preferredLayoutSize(Container)
 o removeLayoutComponent(Component)

Constructors

 o ViewportLayout
 public ViewportLayout()

Methods

 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component c)
 o removeLayoutComponent
 public void removeLayoutComponent(Component c)
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container parent)
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container parent)
 o layoutContainer
 public void layoutContainer(Container parent)

All Packages  Class Hierarchy  This Package  Previous  Next  Index