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

Description (short)
Watch the contents of a variable.
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
varnamecolor
varvaluecolor
numbercolor
Methods
public
ResetDisplay ()
TrackVariable (o oldValue)
createSubwidgets ()
updateDisplay ()
Membervariables
public
line

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
-numbercolor
The name of the color to use for the history numbers.
default value: black

Methods

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)

Overrides watchManager:TrackVariable
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: o The name of the changed option.
Argument: oldValue The value of the option before the change.

createSubwidgets ()

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

updateDisplay ()

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


Membervariables

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

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