File 'gui/trackScalar.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 variable, variable watching, animated feedback, feedback

Class 'trackScalar'

Description
Instances of this class are coupled to a scalar variable, then display its current contents, tracking any changes made to it. Although the purpose of the class is the same as for watchScalar the means of displaying is different. While the former only shows the current value this widget will display the entire of the variable. A scrollable text widget is used to do this.
Superclasses
watchManager
Options
numbercolor, varnamecolor, varvaluecolor
Membervariables
line
Methods
ResetDisplay, TrackVariable, createSubwidgets, updateDisplay

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

line
Counts the number of written so far. Alternative meaning: The number of changes made to the contents of the variable specified in variable.

ResetDisplay ()

Clears the display, then writes the current contents of the asssociated variable into it. Used to refressh the display after changes to the option variable.

TrackVariable (o oldValue)

Overide superclass definition to allow us the insertion of our own code into the action following the change of the variable the widget is connected to.
Argument: oThe name of the changed option.
Argument: oldValueThe value of the option before the change.

createSubwidgets ()

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

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