chrriis.uihierarchy.constraints
Class BoxHConstraints
java.lang.Object
chrriis.uihierarchy.constraints.BoxHConstraints
- All Implemented Interfaces:
- LayoutHConstraints
- public class BoxHConstraints
- extends Object
- implements LayoutHConstraints
The constraints for a Box layout. Constraints are manipulated by the
createConstraints
method, if they are a String.
The format is of the form "key1=value1, key2=value2, ..." where pairs are:
- x = a float.
- y = a float.
- Version:
- 1.1 2003.11.03
- Author:
- Christopher Deckers (chrriis@brainlex.com)
BoxHConstraints
public BoxHConstraints()
createConstraints
public Object createConstraints(SingleLevelAccessor accessor,
Container parentContainer,
Object constraints)
- Create the constraints for a Box layout, if the parameter is a String.
- Specified by:
createConstraints
in interface LayoutHConstraints
- Parameters:
accessor
- The accessor of the level for which to create the
constraints.parentContainer
- The parent container.constraints
- The constraints of the component.
- Returns:
- null, or the original constraints if not a String.