protected class JRootPane.RootLayout extends Objectimplements LayoutManager2 , Serializable
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 XMLEncoder.
| Modifier | Constructor and Description |
|---|---|
protected |
RootLayout()
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component
Adds the specified component to the layout, using the specified constraint object.
|
void |
addLayoutComponent(String
If the layout manager uses a per-component string, adds the component
comp to the layout, associating it with the string specified by
name.
|
float |
getLayoutAlignmentX(Container
Returns the alignment along the x axis.
|
float |
getLayoutAlignmentY(Container
Returns the alignment along the y axis.
|
void |
invalidateLayout(Container
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
|
void |
layoutContainer(Container
Instructs the layout manager to perform the layout for the specified container.
|
Dimension |
maximumLayoutSize(Container
Returns the maximum amount of space the layout can use.
|
Dimension |
minimumLayoutSize(Container
Returns the minimum amount of space the layout needs.
|
Dimension |
preferredLayoutSize(Container
Returns the amount of space the layout would like to have.
|
void |
removeLayoutComponent(Component
Removes the specified component from the layout.
|
public DimensionpreferredLayoutSize(Container parent)
preferredLayoutSize in interface
LayoutManager
parent - the Container for which this layout manager is being used
LayoutManager.minimumLayoutSize(java.awt.Container)
public DimensionminimumLayoutSize(Container parent)
minimumLayoutSize in interface
LayoutManager
parent - the Container for which this layout manager is being used
LayoutManager.preferredLayoutSize(java.awt.Container)
public DimensionmaximumLayoutSize(Container target)
maximumLayoutSize in interface
LayoutManager2
target - the Container for which this layout manager is being used
Component.getMaximumSize() ,
LayoutManager
public void layoutContainer(Containerparent)
layoutContainer in interface
LayoutManager
parent - the Container for which this layout manager is being used
public void addLayoutComponent(Stringname, Component comp)
LayoutManager
comp to the layout, associating it with the string specified by
name.
addLayoutComponent in interface
LayoutManager
name - the string to be associated with the component
comp - the component to be added
public void removeLayoutComponent(Componentcomp)
LayoutManager
removeLayoutComponent in interface
LayoutManager
comp - the component to be removed
public void addLayoutComponent(Componentcomp, Object constraints)
LayoutManager2
addLayoutComponent in interface
LayoutManager2
comp - the component to be added
constraints - where/how the component is added to the layout.
public float getLayoutAlignmentX(Containertarget)
LayoutManager2
public float getLayoutAlignmentY(Containertarget)
LayoutManager2
public void invalidateLayout(Containertarget)
LayoutManager2