LayoutStyle class is used for specifying the spacing between two components or between a component and an edge of the parent container. The spacing can depend upon whether the components are logically grouped together or not. The grouping relationship is used for accessing the preferred gap between components. The field
LayoutStyle.RELATED indicates a logical grouping, while
LayoutStyle.UNRELATED indicates that two components under reference are not related.
LayoutStyle does have a default constructor, but the usual way of getting an instance of this class is to use the static method
getSharedInstance(), which returns the appropriate layout style instance.
The two other methods of this class provided for general use ...