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 JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Field and Description |
|---|---|
| private Container | |
| private SizeRequirements[] | |
| private SizeRequirements | |
| private SizeRequirements[] | |
| private SizeRequirements |
| Access | Constructor and Description |
|---|---|
| public | OverlayLayout(Container
the container to do layout against target)Constructs a layout manager that performs overlay arrangement of the children. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addLayoutComponent(String
the name of the component name, Component the component to be added comp)Implements java. Adds the specified component to the layout. |
| public void | addLayoutComponent(Component
the component to be added comp, Object where/how the component is added to the layout. constraints)Implements java. Adds the specified component to the layout, using the specified constraint object. |
| pack-priv void | |
| pack-priv void | |
| public float | Returns: the alignment >= 0.0f && <= 1.0fthe container target)Implements java. Returns the alignment along the x axis for the container. |
| public float | Returns: the alignment >= 0.0f && <= 1.0fthe container target)Implements java. Returns the alignment along the y axis for the container. |
| public final Container | Returns: the container that uses this layout managerReturns the container that uses this layout manager. |
| public void | invalidateLayout(Container
the container target)Implements java. Indicates a child has changed its layout related information, which causes any cached calculations to be flushed. |
| public void | layoutContainer(Container
the container to lay out target)Implements java. Called by the AWT when the specified container needs to be laid out. |
| public Dimension | Returns: aDimension object containing the maximum
dimensionsthe component that needs to be laid out target)Implements java. Returns the maximum dimensions needed to lay out the components contained in the specified target container. |
| public Dimension | Returns: a Dimension object containing the minimum dimensionsthe component which needs to be laid out target)Implements java. Returns the minimum dimensions needed to lay out the components contained in the specified target container. |
| public Dimension | Returns: a Dimension object containing the preferred dimensionsthe component which needs to be laid out target)Implements java. Returns the preferred dimensions for this layout given the components in the specified target container. |
| public void | removeLayoutComponent(Component
the component to remove comp)Implements java. Removes the specified component from the layout. |
| target | back to summary |
|---|---|
| private Container target | |
| xChildren | back to summary |
|---|---|
| private SizeRequirements[] xChildren | |
| xTotal | back to summary |
|---|---|
| private SizeRequirements xTotal | |
| yChildren | back to summary |
|---|---|
| private SizeRequirements[] yChildren | |
| yTotal | back to summary |
|---|---|
| private SizeRequirements yTotal | |
| OverlayLayout | back to summary |
|---|---|
| public OverlayLayout(Container target) Constructs a layout manager that performs overlay arrangement of the children. The layout manager created is dedicated to the given container.
| |
| addLayoutComponent | back to summary |
|---|---|
| public void addLayoutComponent(String name, Component comp) Implements java. Adds the specified component to the layout. Used by this class to know when to invalidate layout. | |
| addLayoutComponent | back to summary |
|---|---|
| public void addLayoutComponent(Component comp, Object constraints) Implements java. Adds the specified component to the layout, using the specified constraint object. Used by this class to know when to invalidate layout. | |
| checkContainer | back to summary |
|---|---|
| pack-priv void checkContainer(Container target) | |
| checkRequests | back to summary |
|---|---|
| pack-priv void checkRequests() | |
| getLayoutAlignmentX | back to summary |
|---|---|
| public float getLayoutAlignmentX(Container target) Implements java. Returns the alignment along the x axis for the container.
| |
| getLayoutAlignmentY | back to summary |
|---|---|
| public float getLayoutAlignmentY(Container target) Implements java. Returns the alignment along the y axis for the container.
| |
| getTarget | back to summary |
|---|---|
| public final Container getTarget() Returns the container that uses this layout manager.
| |
| invalidateLayout | back to summary |
|---|---|
| public void invalidateLayout(Container target) Implements java. Indicates a child has changed its layout related information, which causes any cached calculations to be flushed.
| |
| layoutContainer | back to summary |
|---|---|
| public void layoutContainer(Container target) Implements java. Called by the AWT when the specified container needs to be laid out. | |
| maximumLayoutSize | back to summary |
|---|---|
| public Dimension maximumLayoutSize(Container target) Implements java. 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
| |
| minimumLayoutSize | back to summary |
|---|---|
| public Dimension minimumLayoutSize(Container target) Implements java. 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.
| |
| preferredLayoutSize | back to summary |
|---|---|
| public Dimension preferredLayoutSize(Container target) Implements java. 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().
| |
| removeLayoutComponent | back to summary |
|---|---|
| public void removeLayoutComponent(Component comp) Implements java. Removes the specified component from the layout. Used by this class to know when to invalidate layout.
| |