Authoring graphics-rich and interactive documents in CGLIB: a constraint-based graphics library

  • Authors:
  • Neng-Fa Zhou

  • Affiliations:
  • CUNY Brooklyn College and Graduate Center, New York, NY

  • Venue:
  • DocEng '01 Proceedings of the 2001 ACM Symposium on Document engineering
  • Year:
  • 2001

Quantified Score

Hi-index 0.00

Visualization

Abstract

CGLIB is a high-level graphics library for B-Prolog, a constraint logic programming system. The library provides primitives for creating and manipulating graphical objects and a set of constraints including non-overlap, grid, table, and tree constraints that facilitates the specification of the layouts of objects. The library adopts a construct called action rules available in B-Prolog for creating agents and programming interactions among agents or between agents and the user. The library is a fully working system implemented in B-Prolog, Java and C. It can be used in many areas such as drawing editors, interactive user interfaces, document authoring, animation, information visualization, intelligent agents, and games. The high-level abstraction of the library and the use of constraints and action rules in the specification of layouts and behaviors can significantly enhance the productivity of the development of graphics. We demonstrate through several examples the effectiveness of the library as a tool for developing graphics-rich and interactive user interfaces.