All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.OverlayLayout

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

public class OverlayLayout
extends Object
implements LayoutManager2, Serializable
A layout manager to arrange components over the top of each other. The requested size of the container will be the largest requested size of the children, taking alignment needs into consideration. The alignment is based upon what is needed to properly fit the children in the allocation area. The children will be placed such that their alignment points are all on top of each other.


Constructor Index

 o OverlayLayout(Container)
Construct a layout manager that performs overlay arrangment of the children.

Method Index

 o addLayoutComponent(Component, Object)
Adds the specified component to the layout, using the specified constraint object.
 o addLayoutComponent(String, Component)
Adds the specified component to the layout.
 o getLayoutAlignmentX(Container)
Returns the alignment along the x axis for the container.
 o getLayoutAlignmentY(Container)
Returns the alignment along the y axis for the container.
 o invalidateLayout(Container)
Indicates a child has changed it's layout related information which causes any cached calculations to be flushed.
 o layoutContainer(Container)
 o maximumLayoutSize(Container)
Returns the minimum dimensions needed to layout the components contained in the specified target container.
 o minimumLayoutSize(Container)
Returns the minimum dimensions needed to layout the components contained in the specified target container.
 o preferredLayoutSize(Container)
Returns the preferred dimensions for this layout given the components in the specified target container.
 o removeLayoutComponent(Component)
Removes the specified component from the layout.

Constructors

 o OverlayLayout
 public OverlayLayout(Container target)
Construct a layout manager that performs overlay arrangment of the children. The layout manager created is dedicated to the given container.

Parameters:
target - The container to do layout against.

Methods

 o invalidateLayout
 public void invalidateLayout(Container target)
Indicates a child has changed it's layout related information which causes any cached calculations to be flushed.

 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
Adds the specified component to the layout. Not used by this class.

Parameters:
name - the name of the component
comp - the the component to be added
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
Removes the specified component from the layout. Not used by this class.

Parameters:
comp - the component to remove
 o addLayoutComponent
 public void addLayoutComponent(Component comp,
                                Object constraints)
Adds the specified component to the layout, using the specified constraint object.

Parameters:
comp - the component to be added
constraints - where/how the component is added to the layout.
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container target)
Returns the preferred dimensions for this layout given the components in the specified target container.

Parameters:
target - the component which needs to be laid out
See Also:
Container, minimumLayoutSize
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container.

Parameters:
target - the component which needs to be laid out
See Also:
preferredLayoutSize
 o maximumLayoutSize
 public Dimension maximumLayoutSize(Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container.

Parameters:
target - the component which needs to be laid out
See Also:
preferredLayoutSize
 o getLayoutAlignmentX
 public float getLayoutAlignmentX(Container target)
Returns the alignment along the x axis for the container. If the major axis of the box is the x axis the default alignment will be returned, otherwise the alignment needed to place the children along the x axis will be returned.

 o getLayoutAlignmentY
 public float getLayoutAlignmentY(Container target)
Returns the alignment along the y axis for the container. If the major axis of the box is the y axis the default alignment will be returned, otherwise the alignment needed to place the children along the y axis will be returned.

 o layoutContainer
 public void layoutContainer(Container target)

All Packages  Class Hierarchy  This Package  Previous  Next  Index