Home Segments Index Top Previous Next

897: Mainline

The meter-drawing method is defined for the Meter class, a subclass of the View class. The meter class has three instance variables. Three setters are defined for those variables for use in initialization:

Meter class definition 
View subclass: #Meter 
  instanceVariableNames: 'min max title' 
  classVariableNames: '' 
  poolDictionaries: '' 
  category: 'Experiment' 
Meter method definition • instance 
setMin: aNumber min := aNumber. 
Meter method definition • instance 
setMax: aNumber max := aNumber.  
Meter method definition • instance 
setTitle: aString title := aString.