Class ComponentBehavior

java.lang.Object
io.codeworth.panelmatic.componentbehavior.ComponentBehavior
All Implemented Interfaces:
Cloneable

public class ComponentBehavior
extends Object
implements Cloneable

Tells the component how to behave spatially (alignment, stretching etc.). Each component gets space. Components can be stretched to fill that space (on the page axis, the line axis, or on both). If the components do not fill the space, they can be aligned in it. The page grow factor tells the builder how much of the free space (if any) the component's space should get. This is very much like the weights in GridBagLayout. grow factor of 0 tells the panel the component should get its preferred size.

Normally, client code will not deal directly with instances of this class, and would rather use one of the Modifiers.

Author:
michaelbar-sinai