net.miginfocom.layout

Interface ContainerWrapper

public interface ContainerWrapper extends ComponentWrapper

A class that wraps a container that contains components.
Method Summary
abstract intgetComponentCount()
Returns the number of components that this parent has.
abstract ComponentWrapper[]getComponents()
Returns the components of the container that wrapper is wrapping.
abstract ObjectgetLayout()
Returns the LayoutHandler (in Swing terms) that is handling the layout of this container.
abstract booleanisLeftToRight()
Returns if this container is using left-to-right component ordering.
abstract voidpaintDebugCell(int x, int y, int width, int height)
Paints a cell to indicate where it is.

Method Detail

getComponentCount

public abstract int getComponentCount()
Returns the number of components that this parent has.

Returns: The number of components that this parent has.

getComponents

public abstract ComponentWrapper[] getComponents()
Returns the components of the container that wrapper is wrapping.

Returns: The components of the container that wrapper is wrapping. Never null.

getLayout

public abstract Object getLayout()
Returns the LayoutHandler (in Swing terms) that is handling the layout of this container. If there exist no such class the method should return the same as ContainerWrapper, which is the container itself.

Returns: The layout handler instance. Never null.

isLeftToRight

public abstract boolean isLeftToRight()
Returns if this container is using left-to-right component ordering.

Returns: If this container is using left-to-right component ordering.

paintDebugCell

public abstract void paintDebugCell(int x, int y, int width, int height)
Paints a cell to indicate where it is.

Parameters: x The x coordinate to start the drwaing. y The x coordinate to start the drwaing. width The width to draw/fill height The height to draw/fill