Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
public class: OverlayLayout [javadoc | source]
java.lang.Object
   javax.swing.OverlayLayout

All Implemented Interfaces:
    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.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder .

Constructor:
 public OverlayLayout(Container target) 
Method from javax.swing.OverlayLayout Summary:
addLayoutComponent,   addLayoutComponent,   checkContainer,   checkRequests,   getLayoutAlignmentX,   getLayoutAlignmentY,   getTarget,   invalidateLayout,   layoutContainer,   maximumLayoutSize,   minimumLayoutSize,   preferredLayoutSize,   removeLayoutComponent
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.OverlayLayout Detail:
 public  void addLayoutComponent(String name,
    Component comp) 
    Adds the specified component to the layout. Used by this class to know when to invalidate layout.
 public  void addLayoutComponent(Component comp,
    Object constraints) 
    Adds the specified component to the layout, using the specified constraint object. Used by this class to know when to invalidate layout.
  void checkContainer(Container target) 
  void checkRequests() 
 public float getLayoutAlignmentX(Container target) 
    Returns the alignment along the x axis for the container.
 public float getLayoutAlignmentY(Container target) 
    Returns the alignment along the y axis for the container.
 public final Container getTarget() 
    Returns the container that uses this layout manager.
 public  void invalidateLayout(Container target) 
    Indicates a child has changed its layout related information, which causes any cached calculations to be flushed.
 public  void layoutContainer(Container target) 
    Called by the AWT when the specified container needs to be laid out.
 public Dimension maximumLayoutSize(Container target) 
    Returns the maximum dimensions needed to lay out the components contained in the specified target container. Recomputes the layout if it has been invalidated, and factors in the inset setting returned by getInset.
 public Dimension minimumLayoutSize(Container target) 
    Returns the minimum dimensions needed to lay out the components contained in the specified target container. Recomputes the layout if it has been invalidated, and factors in the current inset setting.
 public Dimension preferredLayoutSize(Container target) 
    Returns the preferred dimensions for this layout given the components in the specified target container. Recomputes the layout if it has been invalidated. Factors in the current inset setting returned by getInsets().
 public  void removeLayoutComponent(Component comp) 
    Removes the specified component from the layout. Used by this class to know when to invalidate layout.