Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.OverlayLayout
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 Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Constructor Summary | |
OverlayLayout(java.awt.Container target)
Constructs a layout manager that performs overlay arrangment of the children. |
Method Summary | |
void | addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component to the layout. |
void | addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
float | getLayoutAlignmentX(java.awt.Container target)
Returns the alignment along the x axis for the container. |
float | getLayoutAlignmentY(java.awt.Container target)
Returns the alignment along the y axis for the container. |
void | invalidateLayout(java.awt.Container target)
Indicates a child has changed its layout related information, which causes any cached calculations to be flushed. |
void | layoutContainer(java.awt.Container target)
Called by the AWT when the specified container needs to be laid out. |
java.awt.Dimension | maximumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to lay out the components contained in the specified target container. |
java.awt.Dimension | minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to lay out the components contained in the specified target container. |
java.awt.Dimension | preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout given the components in the specified target container. |
void | removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public OverlayLayout(java.awt.Container target)
target
- The container to do layout against.Method Detail |
public void invalidateLayout(java.awt.Container target)
target
- the containerpublic void addLayoutComponent(java.lang.String name, java.awt.Component comp)
name
- the name of the component
comp
- the the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
comp
- the component to removepublic void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
comp
- the component to be added
constraints
- where/how the component is added to the layout.public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
target
- the component which needs to be laid outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container target)
target
- the component which needs to be laid outpublic java.awt.Dimension maximumLayoutSize(java.awt.Container target)
target
- the component which needs to be laid outpublic float getLayoutAlignmentX(java.awt.Container target)
target
- the containerpublic float getLayoutAlignmentY(java.awt.Container target)
target
- the containerpublic void layoutContainer(java.awt.Container target)
target
- the container to lay outOverview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |