|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
javax.swing.OverlayLayout
, LayoutManager2
, Serializable

public class OverlayLayout

, 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 XMLEncoder
.
| Constructor Summary | |
|---|---|
OverlayLayout
Constructs a layout manager that performs overlay arrangement of the children. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent
Adds the specified component to the layout. |
float |
getLayoutAlignmentX
Returns the alignment along the x axis for the container. |
float |
getLayoutAlignmentY
Returns the alignment along the y axis for the container. |
void |
invalidateLayout
Indicates a child has changed its layout related information, which causes any cached calculations to be flushed. |
void |
layoutContainer
Called by the AWT when the specified container needs to be laid out. |
Dimension |
maximumLayoutSize
Returns the maximum dimensions needed to lay out the components contained in the specified target container. |
Dimension |
minimumLayoutSize
Returns the minimum dimensions needed to lay out the components contained in the specified target container. |
Dimension |
preferredLayoutSize
Returns the preferred dimensions for this layout given the components in the specified target container. |
void |
removeLayoutComponent
Removes the specified component from the layout. |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| Constructor Detail |
|---|

public OverlayLayout(Container![]()
![]()
target)
target - the container to do layout against| Method Detail |
|---|

public void invalidateLayout(Container![]()
![]()
target)
invalidateLayout

in interface LayoutManager2

target - the container

public void addLayoutComponent(String![]()
![]()
name, Component
![]()
![]()
comp)
addLayoutComponent

in interface LayoutManager

name - the name of the componentcomp - the the component to be added

public void removeLayoutComponent(Component![]()
![]()
comp)
removeLayoutComponent

in interface LayoutManager

comp - the component to remove

public void addLayoutComponent(Component![]()
![]()
comp, Object
![]()
![]()
constraints)
addLayoutComponent

in interface LayoutManager2

comp - the component to be addedconstraints - where/how the component is added to the layout.

public Dimension![]()
![]()
preferredLayoutSize(Container
![]()
![]()
target)
preferredLayoutSize

in interface LayoutManager

target - the component which needs to be laid out
minimumLayoutSize(java.awt.Container)


public Dimension![]()
![]()
minimumLayoutSize(Container
![]()
![]()
target)
minimumLayoutSize

in interface LayoutManager

target - the component which needs to be laid out
preferredLayoutSize(java.awt.Container)


public Dimension![]()
![]()
maximumLayoutSize(Container
![]()
![]()
target)
getInset.
maximumLayoutSize

in interface LayoutManager2

target - the component that needs to be laid out
Dimension object containing the maximum
dimensionspreferredLayoutSize(java.awt.Container)


public float getLayoutAlignmentX(Container![]()
![]()
target)
getLayoutAlignmentX

in interface LayoutManager2

target - the container

public float getLayoutAlignmentY(Container![]()
![]()
target)
getLayoutAlignmentY

in interface LayoutManager2

target - the container

public void layoutContainer(Container![]()
![]()
target)
layoutContainer

in interface LayoutManager

target - the container to lay out
AWTError

- if the target isn't the container specified to the
constructor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||