File 'gui/watchArray.cls' (part of 'Pool_GuiBase')


Home | Packages | Files | Procedures | Classes | Keywords | External packages


Written by
Andreas Kupries
Description
Generation and maintenance of a variable watcher display.
Keywords
watch array variable, array variable watching, animated feedback, feedback

Class 'watchArray'

Description
Instances of this class are coupled to an array variable, then display its current contents, tracking any changes made to it.
Superclasses
watchAManager
Options
varnamecolor, varvaluecolor
Membervariables
keys, maxKey, sortedKeys
Methods
BuildDisplay, Map2Lines, clearDisplay, createSubwidgets, initDisplay, updateDisplay

-varnamecolor
The name of the color to use for the variable name.
-varvaluecolor
The name of the color to use for the variable contents.

keys
Shadow array mapping the keys in the tracked array to the line in the text widget displaying key and value.
maxKey
Length of longest key, to correct vertical alignment of keys and values.
sortedKeys
The list of keys used in the array referenced by variable, sorted in ascending order, to get stability into the display and no changing of lines due to internals of the hash table.

BuildDisplay ()

Clear the display and recreate it from the ground.

Map2Lines ()

Build a map associating the keys of the array we are connected to to lines in our text widget.

clearDisplay ()

Method required by the superclass watchManager initialize the display after changes to -variable (but not the contents of the associated variable!)

createSubwidgets ()

Called after object construction. Generates the internal widgets and their layout.

initDisplay ()

Method required by the superclass watchManager initialize the display after changes to -variable (but not the contents of the associated variable!)

updateDisplay ()

Method required by the superclass watchManager to propagate changes to the value into the display.


Generated by AutoDoc 2.1 at 02/20/1999, invoked by Andreas Kupries