|
Whole document tree
javax.swing
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
OverlayLayout(Container target)
Constructs a layout manager that performs overlay arrangment of the children. |
|
| Method Summary | |
void |
addLayoutComponent(Component comp,
Object constraints)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component to the layout. |
float |
getLayoutAlignmentX(Container target)
Returns the alignment along the x axis for the container. |
float |
getLayoutAlignmentY(Container target)
Returns the alignment along the y axis for the container. |
void |
invalidateLayout(Container target)
Indicates a child has changed its layout related information, which causes any cached calculations to be flushed. |
void |
layoutContainer(Container target)
Called by the AWT when the specified container needs to be laid out. |
Dimension |
maximumLayoutSize(Container target)
Returns the minimum dimensions needed to lay out the components contained in the specified target container. |
Dimension |
minimumLayoutSize(Container target)
Returns the minimum dimensions needed to lay out the components contained in the specified target container. |
Dimension |
preferredLayoutSize(Container target)
Returns the preferred dimensions for this layout given the components in the specified target container. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OverlayLayout(Container target)
target - The container to do layout against.| Method Detail |
public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2target - the containerpublic void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagername - the name of the componentcomp - the the component to be addedpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagercomp - the component to removepublic void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent in interface LayoutManager2comp - the component to be addedconstraints - where/how the component is added to the layout.public Dimension preferredLayoutSize(Container target)
preferredLayoutSize in interface LayoutManagertarget - the component which needs to be laid outminimumLayoutSize(java.awt.Container)public Dimension minimumLayoutSize(Container target)
minimumLayoutSize in interface LayoutManagertarget - the component which needs to be laid outpreferredLayoutSize(java.awt.Container)public Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2target - the component which needs to be laid outpreferredLayoutSize(java.awt.Container)public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2target - the containerpublic float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2target - the containerpublic void layoutContainer(Container target)
layoutContainer in interface LayoutManagertarget - the container to lay outAWTError - if the target isn't the container specified to the
BoxLayout constructor
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.