org.jdesktop.swingx
Class JXRootPane.XRootLayout

java.lang.Object
  extended by javax.swing.JRootPane.RootLayout
      extended by org.jdesktop.swingx.JXRootPane.XRootLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2, Serializable
Enclosing class:
JXRootPane

protected class JXRootPane.XRootLayout
extends JRootPane.RootLayout

An extended RootLayout offering support for managing the status bar.

See Also:
Serialized Form

Constructor Summary
protected JXRootPane.XRootLayout()
           
 
Method Summary
 void layoutContainer(Container parent)
          Instructs the layout manager to perform the layout for the specified container.
 Dimension maximumLayoutSize(Container target)
          Returns the maximum amount of space the layout can use.
 Dimension minimumLayoutSize(Container parent)
          Returns the minimum amount of space the layout needs.
 Dimension preferredLayoutSize(Container parent)
          Returns the amount of space the layout would like to have.
 void setLayoutManager(LayoutManager2 delegate)
          The layout manager backing this manager.
 
Methods inherited from class javax.swing.JRootPane.RootLayout
addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, removeLayoutComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JXRootPane.XRootLayout

protected JXRootPane.XRootLayout()
Method Detail

setLayoutManager

public void setLayoutManager(LayoutManager2 delegate)
The layout manager backing this manager. The delegate is used to calculate the size when the UI handles the window decorations.

Parameters:
delegate - the backing manager

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Returns the amount of space the layout would like to have.

Specified by:
preferredLayoutSize in interface LayoutManager
Overrides:
preferredLayoutSize in class JRootPane.RootLayout
Parameters:
parent - the Container for which this layout manager is being used
Returns:
a Dimension object containing the layout's preferred size
See Also:
LayoutManager.minimumLayoutSize(java.awt.Container)

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Returns the minimum amount of space the layout needs.

Specified by:
minimumLayoutSize in interface LayoutManager
Overrides:
minimumLayoutSize in class JRootPane.RootLayout
Parameters:
parent - the Container for which this layout manager is being used
Returns:
a Dimension object containing the layout's minimum size
See Also:
LayoutManager.preferredLayoutSize(java.awt.Container)

maximumLayoutSize

public Dimension maximumLayoutSize(Container target)
Returns the maximum amount of space the layout can use.

Specified by:
maximumLayoutSize in interface LayoutManager2
Overrides:
maximumLayoutSize in class JRootPane.RootLayout
Parameters:
target - the Container for which this layout manager is being used
Returns:
a Dimension object containing the layout's maximum size
See Also:
Component.getMaximumSize(), LayoutManager

layoutContainer

public void layoutContainer(Container parent)
Instructs the layout manager to perform the layout for the specified container.

Specified by:
layoutContainer in interface LayoutManager
Overrides:
layoutContainer in class JRootPane.RootLayout
Parameters:
parent - the Container for which this layout manager is being used