Domain Specific High-Level Constraints for User Interface Layout. - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Constraints Année : 2008

Domain Specific High-Level Constraints for User Interface Layout.

Robert Strandh
  • Fonction : Auteur
  • PersonId : 856473
Gerald Weber
  • Fonction : Auteur
  • PersonId : 856474

Résumé

We present the Auckland Layout Model (ALM), a constraint-based technique for specifying 2D layout as it is used for arranging the controls in a GUI. Most GUI frameworks offer layout managers that are basically adjustable tables; often adjacent table cells can be merged. In the ALM, the focus switches from the table cells to vertical and horizontal tabulators between the cells. On the lowest level of abstraction, the model applies linear constraints, and an optimal layout is calculated using linear programming. However, bare linear programming makes layout specification cumbersome and unintuitive, especially for GUI domain experts who are often not used to such mathematical formalisms. In order to improve the usability of the model, ALM offers several other layers of abstraction that make it possible to define common GUI layout more easily. In the domain of user interfaces it is important that specifications are not over-constrained, therefore ALM introduces soft constraints, which are automatically translated to appropriate hard linear constraints and terms in the objective function. GUIs are usually composed of rectangular areas containing controls, therefore ALM offers an abstraction for such areas. Dynamic resizing behavior is very important for GUIs, hence areas have domain-specific parameters specifying their minimum, maximum and preferred sizes. From such definitions, hard and soft constraints are automatically derived. A third level of abstraction allows designers to arrange GUIs in a tabular fashion, using abstractions for columns and rows, which offer additional parameters for ordering and alignment. Row and column definitions are used to automatically generate definitions from lower levels of abstraction, such as hard and soft constraints and areas. Specifications from all levels of abstraction can be consistently combined, offering GUI developers a rich set of tools that is much closer to their needs than pure linear constraints. Incremental computation of solutions makes constraint solving fast enough for near real-time use.
Fichier non déposé

Dates et versions

hal-00345425 , version 1 (09-12-2008)

Identifiants

  • HAL Id : hal-00345425 , version 1

Citer

Christof Lutteroth, Robert Strandh, Gerald Weber. Domain Specific High-Level Constraints for User Interface Layout.. Constraints, 2008, 13 (3), pp.307-342. ⟨hal-00345425⟩
31 Consultations
0 Téléchargements

Partager

Gmail Facebook X LinkedIn More