javax.swing.plaf.basic

Class BasicSplitPaneDivider.DividerLayout

protected class BasicSplitPaneDivider.DividerLayout extends Object implements LayoutManager

This helper class acts as the Layout Manager for the divider.
Constructor Summary
protected DividerLayout()
Creates a new DividerLayout object.
Method Summary
voidaddLayoutComponent(String string, Component c)
This method is called when a Component is added.
voidlayoutContainer(Container c)
This method is called to lay out the container.
DimensionminimumLayoutSize(Container c)
This method returns the minimum layout size.
DimensionpreferredLayoutSize(Container c)
This method returns the preferred layout size.
voidremoveLayoutComponent(Component c)
This method is called when a component is removed.

Constructor Detail

DividerLayout

protected DividerLayout()
Creates a new DividerLayout object.

Method Detail

addLayoutComponent

public void addLayoutComponent(String string, Component c)
This method is called when a Component is added.

Parameters: string The constraints string. c The Component to add.

layoutContainer

public void layoutContainer(Container c)
This method is called to lay out the container.

Parameters: c The container to lay out.

minimumLayoutSize

public Dimension minimumLayoutSize(Container c)
This method returns the minimum layout size.

Parameters: c The container to calculate for.

Returns: The minimum layout size.

preferredLayoutSize

public Dimension preferredLayoutSize(Container c)
This method returns the preferred layout size.

Parameters: c The container to calculate for.

Returns: The preferred layout size.

removeLayoutComponent

public void removeLayoutComponent(Component c)
This method is called when a component is removed.

Parameters: c The component to remove.