public RectangleConstraint toRangeWidth(Range range) {
        if (range == null) {
            throw new IllegalArgumentException("Null 'range' argument.");   
        }
        return new RectangleConstraint(range.getUpperBound(), range, 
                LengthConstraintType.RANGE, this.height, this.heightRange, 
                this.heightConstraintType);