|
Class: RangeAdaptor
Object
|
+--Model
|
+--ValueModel
|
+--ValueHolder
|
+--RangeAdaptor
- Package:
- stx:libview2
- Category:
- Interface-Support-Models
- Version:
- rev:
1.3
date: 2000/02/05 14:21:30
- user: cg
- file: RangeAdaptor.st directory: libview2
- module: stx stc-classLibrary: libview2
Range Adaptor is a kind of UpdateAdaptor that can be used to turn an
arbitrary number (either an Integer or a Float) into a Float normalized between
0 and 1.
instance creation
-
on: aSubject start: aStart stop: aStop grid: aGrid
-
-
on: aSubject stop: aStop
-
-
on: aSubject stop: aStop grid: aGrid
-
accessing
-
grid
-
return the value of the instance variable 'grid' (automatically generated)
-
grid: something
-
set the value of the instance variable 'grid' (automatically generated)
-
rangeStart
-
return the value of the instance variable 'rangeStart' (automatically generated)
-
rangeStart: something
-
set the value of the instance variable 'rangeStart' (automatically generated)
-
rangeStop
-
return the value of the instance variable 'rangeStop' (automatically generated)
-
rangeStop: something
-
set the value of the instance variable 'rangeStop' (automatically generated)
-
setValue: aNumber
-
physically set my value, without change notifications
-
subject
-
-
subject: aValue
-
-
value
-
return my value
-
value: aNumber
-
physically set my value, without change notifications
actions
-
decrement
-
deccrement my value by grid
-
increment
-
increment my value by grid
change & update
-
update: something with: aParameter from: changedObject
-
translate an update from the model into a #value-change
via my depenedents ...
dependents access
-
addDependent: anObject
-
make the argument, anObject be a dependent of the receiver
-
release
-
remove all dependencies from the receiver
-
removeDependent: anObject
-
make the argument, anObject be independent of the receiver
initialization
-
initialize
-
private
-
setSubjectsValue: aNewValue
-
scale values 0..1 in the RA to 0..100 in the original model:
|m r|
m := 0 asValue.
r := RangeAdaptor on:m start:0 stop:100 grid:1.
m inspect.
r inspect.
|
|