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

Description (short)
Watch the contents of an array variable.
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
Methods
public
BuildDisplay ()
Map2Lines ()
clearDisplay ()
createSubwidgets ()
initDisplay ()
updateDisplay ()
Membervariables
public
keys
maxKey
sortedKeys

Options

-varnamecolor
The name of the color to use for the variable name.
default value: red
-varvaluecolor
The name of the color to use for the variable contents.
default value: blue

Methods

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 ()

Overrides watchAManager:createSubwidgets
Called after object construction. Generates the internal widgets and their layout.

initDisplay ()

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

updateDisplay ()

Overrides watchAManager:updateDisplay
Method required by the superclass watchManager to propagate changes to the value into the display.


Membervariables

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.

Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries