- All Known Implementing Classes:
- DocumentationComponent
public interface WidthBasedLayout
This interface is supposed to be implemented by Swing components, for which preferred width and height are not independent. Example is a
text component where text is broken into lines according to available width. Laying out such a component usually implies calculating its
preferred width, then calculating actual width to use (e.g. by fitting it to horizontal space, available to the parent component), and
finally calculating the component preferred height, based on the chosen width. *