java.lang.Object | |
↳ | javax.swing.JRootPane.RootLayout |
A custom layout manager that is responsible for the layout of layeredPane, glassPane, and menuBar.
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
.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
If the layout manager uses a per-component string,
adds the component
comp to the layout,
associating it
with the string specified by name . | |||||||||||
Adds the specified component to the layout, using the specified
constraint object.
| |||||||||||
Returns the alignment along the x axis.
| |||||||||||
Returns the alignment along the y axis.
| |||||||||||
Invalidates the layout, indicating that if the layout manager
has cached information it should be discarded.
| |||||||||||
Instructs the layout manager to perform the layout for the specified
container.
| |||||||||||
Returns the maximum amount of space the layout can use.
| |||||||||||
Returns the minimum amount of space the layout needs.
| |||||||||||
Returns the amount of space the layout would like to have.
| |||||||||||
Removes the specified component from the layout.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
If the layout manager uses a per-component string,
adds the component comp
to the layout,
associating it
with the string specified by name
.
name | the string to be associated with the component |
---|---|
comp | the component to be added |
Adds the specified component to the layout, using the specified constraint object.
comp | the component to be added |
---|---|
constraints | where/how the component is added to the layout. |
Returns the alignment along the x axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.
Returns the alignment along the y axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
Instructs the layout manager to perform the layout for the specified container.
parent | the Container for which this layout manager is being used |
---|
Returns the maximum amount of space the layout can use.
target | the Container for which this layout manager is being used |
---|
Returns the minimum amount of space the layout needs.
parent | the Container for which this layout manager is being used |
---|
Returns the amount of space the layout would like to have.
parent | the Container for which this layout manager is being used |
---|
Removes the specified component from the layout.
comp | the component to be removed |
---|