chrriis.uihierarchy.constraints
Class NullHConstraints
java.lang.Object
chrriis.uihierarchy.constraints.NullHConstraints
- All Implemented Interfaces:
- LayoutHConstraints
- public class NullHConstraints
- extends Object
- implements LayoutHConstraints
The constraints for a null layout. Constraints are manipulated by the
createConstraints
method, if they are a String.
Additionaly, the size of the component is computed if it is not yet set.
The format is of the form "key1=value1, key2=value2, ..." where pairs are:
- x = an integer that specifies the absolute x location.
- y = an integer that specifies the absolute y location.
- width = an integer that specifies the width.
- height = an integer that specifies the height.
If the component is not displayable and its size is (0, 0), then it will be
set to its preffered size.
- Version:
- 1.0 2003.11.04
- Author:
- Christopher Deckers (chrriis@brainlex.com)
NullHConstraints
public NullHConstraints()
createConstraints
public Object createConstraints(SingleLevelAccessor accessor,
Container parentContainer,
Object constraints)
- Create the constraints for a null 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.