next up previous
Next: Observational Study Data Up: Maintaining Information Awareness in Previous: Pilot Study Questionnaire

B. Programming with Agentk

  Agentk (pronounced agent-t-k) is extension to the Tcl/Tk toolkit that facilitate the incorporation of various graphical and motion-based effects into user interfaces. It requires Tcl/Tk 8.3 (or a later version) and requires Jeff Hobbs' megawidget creation package (included in the distribution) to operate. Agentk is available on the Web from the Agentk Web site:

http://www.cc.gatech.edu/ mccricks/agentk/

The remainder of this appendix describes the widgets, options, subcommands, and bindings for Agentk as well as several sample programs that are included with the distribution.

B.1 Agentk widgets

The fade widget fades in and out between several blocks of text and graphics. The gradual change will be less distracting than a sudden switch, yet will allow multiple information blocks to be displayed in a single area. The programmer controls the speed with which the fade occurs depending on the nature of the application: if the widget is used in a non-agent application interface, a quick fade might be used, while an agent might call for a slower, less intrusive fade.

The ticker widget provides a ticker tape display that scrolls or "tickers" information across the screen. As with the fade widget, a slow tickering can be less distracting than a sudden switch in information. The ticker widget is better suited for streams of text with arbitrary length - news headlines, weather reports, traffic updates. The programmer can control the rate of the tickering depending on the nature of the programming. The user can grab the ticker using the mouse to stop the tickering effect to make it easier to see the information. By dragging the information at a certain velocity, the user can change the speed and direction of the tickering effect.

Roll widgets are similar to ticker widgets, except they scroll information vertically. They work best for lists of information like golf leaderboards or top sales charts.

The navigation bar communicates information about the contents of a list by using the space in the trough of the scrollbar to represent the list entry. Each list entry is represented with a graphical line. Properties of the list entries are reflected in properties of the graphical lines.

B.2 Options, subcommands, and bindings

This section describes the subcommands, options, and bindings for the Agentk animated widgets.

A subcommand is a command that is available within a widget command. For example, all Tcl/Tk widgets (including the animated widgets) support the configure subcommand for querying and altering the widget options. Animated widgets additionally support the following subcommands:

A configuration option alters the behavior and appearance of a widget. Common options include -geometry, -font, and -width. The following are some selected options that are available with the animated widgets.

 

  figure864


Figure 21: The fade interface of the CWIC passive Web browser. The display consists of two fade widgets running in sync using the -drive option. The upper one fades between images and the lower one fades between text labels for the image. The first frame shows an initial image and text. The next two frames show how the image and text fade away as the new ones fade in. The final two frames show how the new image and text appear in their entirety as the old disappear.

Bindings define the behavior when certain actions are performed by a user on a widget. Below are the default bindings. A programmer can tailor the bindings based on the needs of their applications.

B.3 Demos

Agentk comes with several demo scripts that showcase its power. Most of them simply demonstrate the abilities of the widget, though some provide useful information monitoring capabilities. The Agentk demo programs are:


next up previous
Next: Observational Study Data Up: Maintaining Information Awareness in Previous: Pilot Study Questionnaire

D. Scott McCrickard
Mon Feb 12 12:12:24 EST 2001