documentation; examples
authorClaus Gittinger <cg@exept.de>
Sat, 05 Feb 2000 15:21:30 +0100
changeset 1334 ef2bb6ffd32c
parent 1333 423b4b4404c4
child 1335 275352274890
documentation; examples
RangeAdaptor.st
--- a/RangeAdaptor.st	Sat Feb 05 14:39:21 2000 +0100
+++ b/RangeAdaptor.st	Sat Feb 05 15:21:30 2000 +0100
@@ -36,11 +36,26 @@
 !
 
 documentation
-
+"
+    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.
 "
-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.
+
+
+!
+
+examples
+"
+    scale values 0..1 in the RA to 0..100 in the original model:
+                                                                [exBegin]
+    |m r|
+
+    m := 0 asValue.
+    r := RangeAdaptor on:m start:0 stop:100 grid:1.
+    m inspect.
+    r inspect.
+                                                                [exEnd]
 "
 
 
@@ -250,5 +265,5 @@
 !RangeAdaptor class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/RangeAdaptor.st,v 1.2 1998-07-27 07:53:45 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/RangeAdaptor.st,v 1.3 2000-02-05 14:21:30 cg Exp $'
 ! !